mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu: Close submenu on ESCAPE keypress
This commit is contained in:
parent
c0f7afd160
commit
5a112d4e03
6
ui/jquery.ui.menu.js
vendored
6
ui/jquery.ui.menu.js
vendored
@ -112,6 +112,12 @@ $.widget("ui.menu", {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopImmediatePropagation();
|
event.stopImmediatePropagation();
|
||||||
break;
|
break;
|
||||||
|
case $.ui.keyCode.ESCAPE:
|
||||||
|
if ( self.left( event ) ) {
|
||||||
|
event.stopImmediatePropagation();
|
||||||
|
}
|
||||||
|
event.preventDefault();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
clearTimeout(self.filterTimer);
|
clearTimeout(self.filterTimer);
|
||||||
|
Loading…
Reference in New Issue
Block a user