Selectmenu: close open menu on escape keydown

This commit is contained in:
Felix Nagel 2012-02-22 00:29:05 +01:00
parent af0d520704
commit c424ae40f0

View File

@ -328,6 +328,7 @@ $.widget( "ui.selectmenu", {
var prevDef = true;
switch (event.keyCode) {
case $.ui.keyCode.TAB:
case $.ui.keyCode.ESCAPE:
if ( this.isOpen ) {
this.close( event );
}