mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-23 23:47:46 +08:00
Fix Bug 63918, Bug 63644
This commit is contained in:
@ -172,9 +172,6 @@ define([
|
||||
if ((event.ctrlKey || event.metaKey) && !event.altKey) {
|
||||
this._onBtnAddMessage(event);
|
||||
}
|
||||
} else
|
||||
if (event.keyCode == Common.UI.Keys.ESC && !Common.UI.HintManager.isHintVisible()) {
|
||||
this.hide();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -726,8 +726,6 @@ define([
|
||||
|
||||
if (key == Common.UI.Keys.ESC) {
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
if (!Common.UI.HintManager.isHintVisible())
|
||||
Common.NotificationCenter.trigger('leftmenu:change', 'hide');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -851,7 +851,7 @@ define([
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (this.leftMenu.btnAbout.pressed || this.leftMenu.isPluginButtonPressed() || $(e.target).parents('#left-menu').length ) {
|
||||
if (this.leftMenu.btnAbout.pressed) {
|
||||
if (!Common.UI.HintManager.isHintVisible()) {
|
||||
this.leftMenu.close();
|
||||
Common.NotificationCenter.trigger('layout:changed', 'leftmenu');
|
||||
|
||||
@ -394,8 +394,6 @@ define([
|
||||
|
||||
if (key == Common.UI.Keys.ESC) {
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
if (!Common.UI.HintManager.isHintVisible())
|
||||
Common.NotificationCenter.trigger('leftmenu:change', 'hide');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -768,7 +768,7 @@ define([
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (this.leftMenu.btnAbout.pressed || this.leftMenu.isPluginButtonPressed() || $(e.target).parents('#left-menu').length ) {
|
||||
if (this.leftMenu.btnAbout.pressed) {
|
||||
if (!Common.UI.HintManager.isHintVisible()) {
|
||||
this.leftMenu.close();
|
||||
Common.NotificationCenter.trigger('layout:changed', 'leftmenu');
|
||||
|
||||
@ -737,8 +737,6 @@ define([
|
||||
}
|
||||
if (key == Common.UI.Keys.ESC) {
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
if (!Common.UI.HintManager.isHintVisible())
|
||||
Common.NotificationCenter.trigger('leftmenu:change', 'hide');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -674,7 +674,7 @@ define([
|
||||
}
|
||||
}
|
||||
|
||||
if ( this.leftMenu.btnAbout.pressed || this.leftMenu.isPluginButtonPressed() || $(e.target).parents('#left-menu').length ) {
|
||||
if ( this.leftMenu.btnAbout.pressed ) {
|
||||
if (!Common.UI.HintManager.isHintVisible()) {
|
||||
this.leftMenu.close();
|
||||
Common.NotificationCenter.trigger('layout:changed', 'leftmenu');
|
||||
|
||||
@ -831,8 +831,7 @@ define([
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if ( this.leftMenu.btnAbout.pressed || this.leftMenu.isPluginButtonPressed() ||
|
||||
($(e.target).parents('#left-menu').length || this.leftMenu.btnComments.pressed) && this.api.isCellEdited!==true) {
|
||||
if ( this.leftMenu.btnAbout.pressed) {
|
||||
if (!Common.UI.HintManager.isHintVisible()) {
|
||||
this.leftMenu.close();
|
||||
Common.NotificationCenter.trigger('layout:changed', 'leftmenu');
|
||||
|
||||
Reference in New Issue
Block a user