locked F1 hotkey for 'view' mode
This commit is contained in:
parent
fb8eb5ddea
commit
134c5c907e
|
@ -576,8 +576,10 @@ define([
|
|||
}
|
||||
return false;
|
||||
case 'help':
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
this.leftMenu.showMenu('file:help');
|
||||
if ( this.mode.isEdit ) { // TODO: unlock 'help' for 'view' mode
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
this.leftMenu.showMenu('file:help');
|
||||
}
|
||||
return false;
|
||||
case 'file':
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
|
|
|
@ -456,10 +456,14 @@ define([
|
|||
}
|
||||
return false;
|
||||
case 'help':
|
||||
if ( this.mode.isEdit ) { // TODO: unlock 'help' panel for 'view' mode
|
||||
|
||||
if (!previewPanel || !previewPanel.isVisible()){
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
this.leftMenu.showMenu('file:help');
|
||||
}
|
||||
|
||||
}
|
||||
return false;
|
||||
case 'file':
|
||||
if (!previewPanel || !previewPanel.isVisible()) {
|
||||
|
|
|
@ -639,9 +639,11 @@ define([
|
|||
}
|
||||
return false;
|
||||
case 'help':
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
this.api.asc_closeCellEditor();
|
||||
this.leftMenu.showMenu('file:help');
|
||||
if ( this.mode.isEdit ) { // TODO: unlock 'help' panel for 'view' mode
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
this.api.asc_closeCellEditor();
|
||||
this.leftMenu.showMenu('file:help');
|
||||
}
|
||||
|
||||
return false;
|
||||
case 'file':
|
||||
|
|
Loading…
Reference in a new issue