Permalink
Browse files

Selectmenu: close open menu on escape keydown

  • Loading branch information...
1 parent af0d520 commit c424ae40f08b42185ff3a0e6adea7d1091e43ab2 @fnagel fnagel committed Feb 21, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 ui/jquery.ui.selectmenu.js
View
1 ui/jquery.ui.selectmenu.js
@@ -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 );
}

0 comments on commit c424ae4

Please sign in to comment.