File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ $.widget( "ui.menubar", {
65
65
"aria-hidden" : "true" ,
66
66
"aria-expanded" : "false"
67
67
} )
68
+ // TODO use _on
68
69
. bind ( "keydown.menubar" , function ( event ) {
69
70
var menu = $ ( this ) ;
70
71
if ( menu . is ( ":hidden" ) ) {
@@ -88,6 +89,7 @@ $.widget( "ui.menubar", {
88
89
89
90
// might be a non-menu button
90
91
if ( menu . length ) {
92
+ // TODO use _on
91
93
input . bind ( "click.menubar focus.menubar mouseenter.menubar" , function ( event ) {
92
94
// ignore triggered focus event
93
95
if ( event . type === "focus" && ! event . originalEvent ) {
@@ -108,6 +110,7 @@ $.widget( "ui.menubar", {
108
110
that . _open ( event , menu ) ;
109
111
}
110
112
} )
113
+ // TODO use _on
111
114
. bind ( "keydown" , function ( event ) {
112
115
switch ( event . keyCode ) {
113
116
case $ . ui . keyCode . SPACE :
@@ -134,6 +137,7 @@ $.widget( "ui.menubar", {
134
137
input . removeClass ( "ui-button-text-only" ) . addClass ( "ui-button-text-icon-secondary" ) ;
135
138
}
136
139
} else {
140
+ // TODO use _on
137
141
input . bind ( "click.menubar mouseenter.menubar" , function ( event ) {
138
142
if ( ( that . open && event . type === "mouseenter" ) || event . type === "click" ) {
139
143
that . _close ( ) ;
You can’t perform that action at this time.
0 commit comments