Hide alt-key hints for resize and scroll events
This commit is contained in:
parent
1803cb52a3
commit
b0160dc0fe
|
@ -357,7 +357,8 @@ Common.UI.HintManager = new(function() {
|
||||||
_lang = mode.lang;
|
_lang = mode.lang;
|
||||||
_getAlphabetLetters();
|
_getAlphabetLetters();
|
||||||
},
|
},
|
||||||
'hints:clear': _clearHints
|
'hints:clear': _clearHints,
|
||||||
|
'window:resize': _clearHints
|
||||||
});
|
});
|
||||||
$('#editor_sdk').on('click', function () {
|
$('#editor_sdk').on('click', function () {
|
||||||
_clearHints();
|
_clearHints();
|
||||||
|
|
|
@ -423,6 +423,7 @@ define([
|
||||||
this.setTabVisible('backward');
|
this.setTabVisible('backward');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Common.NotificationCenter.trigger('hints:clear');
|
||||||
},
|
},
|
||||||
|
|
||||||
onProcessMouse: function(data) {
|
onProcessMouse: function(data) {
|
||||||
|
|
|
@ -316,6 +316,7 @@
|
||||||
|
|
||||||
var shouldPrevent = false;
|
var shouldPrevent = false;
|
||||||
$this.bind('mousewheel' + eventClassName, function (e, deprecatedDelta, deprecatedDeltaX, deprecatedDeltaY) {
|
$this.bind('mousewheel' + eventClassName, function (e, deprecatedDelta, deprecatedDeltaX, deprecatedDeltaY) {
|
||||||
|
Common.NotificationCenter.trigger('hints:clear');
|
||||||
var deltaX = e.deltaX * e.deltaFactor || deprecatedDeltaX,
|
var deltaX = e.deltaX * e.deltaFactor || deprecatedDeltaX,
|
||||||
deltaY = e.deltaY * e.deltaFactor || deprecatedDeltaY;
|
deltaY = e.deltaY * e.deltaFactor || deprecatedDeltaY;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue