r3334 committed - autocomplete: tab key handling
Revision: 3334
Author: joern.zaefferer
Date: Tue Sep 29 15:49:34 2009
Log: autocomplete: tab key handling
http://code.google.com/p/jquery-ui/source/detail?r=3334
Modified:
/branches/dev/ui/jquery.ui.autocomplete.js
=======================================
--- /branches/dev/ui/jquery.ui.autocomplete.js Tue Sep 29 15:37:32 2009
+++ /branches/dev/ui/jquery.ui.autocomplete.js Tue Sep 29 15:49:34 2009
@@ -30,6 +30,9 @@
case $.ui.keyCode.ENTER:
self.select();
break;
+ case $.ui.keyCode.TAB:
+ self.select();
+ break;
case $.ui.keyCode.ESCAPE:
self.close();
break;
@@ -174,6 +177,8 @@
},
select: function() {
+ if (!this.menu)
+ return;
this.menu.menu("select");
}
});