Don't add hyperlink when file menu is opened
This commit is contained in:
parent
fbd59eaf24
commit
a7ab7b4f19
|
@ -673,7 +673,7 @@ define([
|
||||||
|
|
||||||
var onDialogAddHyperlink = function() {
|
var onDialogAddHyperlink = function() {
|
||||||
var win, props, text;
|
var win, props, text;
|
||||||
if (me.api && me.mode.isEdit && !me._isDisabled){
|
if (me.api && me.mode.isEdit && !me._isDisabled && !DE.getController('LeftMenu').leftMenu.menuFile.isVisible()){
|
||||||
var handlerDlg = function(dlg, result) {
|
var handlerDlg = function(dlg, result) {
|
||||||
if (result == 'ok') {
|
if (result == 'ok') {
|
||||||
props = dlg.getSettings();
|
props = dlg.getSettings();
|
||||||
|
|
|
@ -583,7 +583,7 @@ define([
|
||||||
|
|
||||||
var onDialogAddHyperlink = function() {
|
var onDialogAddHyperlink = function() {
|
||||||
var win, props, text;
|
var win, props, text;
|
||||||
if (me.api && me.mode.isEdit && !me._isDisabled){
|
if (me.api && me.mode.isEdit && !me._isDisabled && !PE.getController('LeftMenu').leftMenu.menuFile.isVisible()){
|
||||||
var handlerDlg = function(dlg, result) {
|
var handlerDlg = function(dlg, result) {
|
||||||
if (result == 'ok') {
|
if (result == 'ok') {
|
||||||
props = dlg.getSettings();
|
props = dlg.getSettings();
|
||||||
|
|
|
@ -1437,7 +1437,8 @@ define([
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
},
|
},
|
||||||
'command+k,ctrl+k': function (e) {
|
'command+k,ctrl+k': function (e) {
|
||||||
if (me.editMode && !me.toolbar.mode.isEditMailMerge && !me.toolbar.mode.isEditDiagram && !me.api.isCellEdited && !me._state.multiselect && !me._state.inpivot)
|
if (me.editMode && !me.toolbar.mode.isEditMailMerge && !me.toolbar.mode.isEditDiagram && !me.api.isCellEdited && !me._state.multiselect && !me._state.inpivot &&
|
||||||
|
!me.getApplication().getController('LeftMenu').leftMenu.menuFile.isVisible())
|
||||||
me.onHyperlink();
|
me.onHyperlink();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue