We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc93b3f commit 2803417Copy full SHA for 2803417
ui/jquery.ui.tooltip.js
@@ -148,7 +148,14 @@ $.widget( "ui.tooltip", {
148
149
this._bind( target, {
150
mouseleave: "close",
151
- blur: "close"
+ blur: "close",
152
+ keyup: function( event ) {
153
+ if ( event.keyCode == $.ui.keyCode.ESCAPE ) {
154
+ var fakeEvent = $.Event(event);
155
+ fakeEvent.currentTarget = target[0];
156
+ this.close( fakeEvent, true );
157
+ }
158
159
});
160
},
161
@@ -176,7 +183,7 @@ $.widget( "ui.tooltip", {
176
183
delete that.tooltips[ this.id ];
177
184
178
185
179
- target.unbind( "mouseleave.tooltip blur.tooltip" );
186
+ target.unbind( "mouseleave.tooltip blur.tooltip keyup.tooltip" );
180
187
181
188
this._trigger( "close", event, { tooltip: tooltip } );
182
189
0 commit comments