[SSE] Add hotkey Shift+F3 for function insert

This commit is contained in:
Julia Radzhabova 2020-05-07 19:42:27 +03:00
parent 5caf5c74eb
commit 9d8f314157
3 changed files with 23 additions and 8 deletions

View file

@ -1525,6 +1525,16 @@ define([
me.onCustomNumberFormat();
}
return false;
},
'shift+f3': function(e) {
if (me.editMode && !me.toolbar.btnInsertFormula.isDisabled()) {
var controller = me.getApplication().getController('FormulaDialog');
if (controller) {
controller.showDialog();
}
}
return false;
}
}

View file

@ -190,7 +190,7 @@ define([
cls: 'btn-toolbar x-huge icon-top',
iconCls: 'toolbar__icon btn-autosum',
caption: this.txtAutosum,
hint: [this.txtAutosumTip + Common.Utils.String.platformKey('Alt+='), this.txtFormulaTip],
hint: [this.txtAutosumTip + Common.Utils.String.platformKey('Alt+='), this.txtFormulaTip + Common.Utils.String.platformKey('Shift+F3')],
split: true,
disabled: true,
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth],
@ -204,7 +204,8 @@ define([
{caption: '--'},
{
caption: me.txtAdditional,
value: 'more'
value: 'more',
hint: me.txtFormulaTip + Common.Utils.String.platformKey('Shift+F3')
}
]
})
@ -217,7 +218,7 @@ define([
cls: 'btn-toolbar x-huge icon-top',
iconCls: 'toolbar__icon btn-ins-formula',
caption: this.txtFormula,
hint: this.txtFormulaTip,
hint: this.txtFormulaTip + Common.Utils.String.platformKey('Shift+F3'),
disabled: true,
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth]
});
@ -394,7 +395,8 @@ define([
{ caption: '--' },
{
caption: me.txtAdditional,
value: 'more'
value: 'more',
hint: me.txtFormulaTip + Common.Utils.String.platformKey('Shift+F3')
}
]
}));
@ -456,7 +458,8 @@ define([
{ caption: '--' },
{
caption: me.txtAdditional,
value: 'more'
value: 'more',
hint: me.txtFormulaTip + Common.Utils.String.platformKey('Shift+F3')
}
]
})

View file

@ -221,7 +221,8 @@ define([
{caption: '--'},
{
caption: me.txtAdditional,
value: 'more'
value: 'more',
hint: me.txtFormula + Common.Utils.String.platformKey('Shift+F3')
}
]
})
@ -888,7 +889,8 @@ define([
{caption: '--'},
{
caption: me.txtAdditional,
value: 'more'
value: 'more',
hint: me.txtFormula + Common.Utils.String.platformKey('Shift+F3')
}
]
})
@ -1665,7 +1667,7 @@ define([
_updateHint(this.btnCurrencyStyle, this.tipDigStyleAccounting);
_updateHint(this.btnDecDecimal, this.tipDecDecimal);
_updateHint(this.btnIncDecimal, this.tipIncDecimal);
_updateHint(this.btnInsertFormula, [this.txtAutosumTip + Common.Utils.String.platformKey('Alt+='), this.txtFormula]);
_updateHint(this.btnInsertFormula, [this.txtAutosumTip + Common.Utils.String.platformKey('Alt+='), this.txtFormula + Common.Utils.String.platformKey('Shift+F3')]);
_updateHint(this.btnNamedRange, this.txtNamedRange);
_updateHint(this.btnClearStyle, this.tipClearStyle);
_updateHint(this.btnCopyStyle, this.tipCopyStyle);