[SSE] Add hotkey Shift+F3 for function insert
This commit is contained in:
parent
5caf5c74eb
commit
9d8f314157
|
@ -1525,6 +1525,16 @@ define([
|
||||||
me.onCustomNumberFormat();
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,7 +190,7 @@ define([
|
||||||
cls: 'btn-toolbar x-huge icon-top',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-autosum',
|
iconCls: 'toolbar__icon btn-autosum',
|
||||||
caption: this.txtAutosum,
|
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,
|
split: true,
|
||||||
disabled: true,
|
disabled: true,
|
||||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth],
|
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: '--'},
|
||||||
{
|
{
|
||||||
caption: me.txtAdditional,
|
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',
|
cls: 'btn-toolbar x-huge icon-top',
|
||||||
iconCls: 'toolbar__icon btn-ins-formula',
|
iconCls: 'toolbar__icon btn-ins-formula',
|
||||||
caption: this.txtFormula,
|
caption: this.txtFormula,
|
||||||
hint: this.txtFormulaTip,
|
hint: this.txtFormulaTip + Common.Utils.String.platformKey('Shift+F3'),
|
||||||
disabled: true,
|
disabled: true,
|
||||||
lock: [_set.editText, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.selRangeEdit, _set.lostConnect, _set.coAuth]
|
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: '--' },
|
||||||
{
|
{
|
||||||
caption: me.txtAdditional,
|
caption: me.txtAdditional,
|
||||||
value: 'more'
|
value: 'more',
|
||||||
|
hint: me.txtFormulaTip + Common.Utils.String.platformKey('Shift+F3')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}));
|
}));
|
||||||
|
@ -456,7 +458,8 @@ define([
|
||||||
{ caption: '--' },
|
{ caption: '--' },
|
||||||
{
|
{
|
||||||
caption: me.txtAdditional,
|
caption: me.txtAdditional,
|
||||||
value: 'more'
|
value: 'more',
|
||||||
|
hint: me.txtFormulaTip + Common.Utils.String.platformKey('Shift+F3')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
|
@ -221,7 +221,8 @@ define([
|
||||||
{caption: '--'},
|
{caption: '--'},
|
||||||
{
|
{
|
||||||
caption: me.txtAdditional,
|
caption: me.txtAdditional,
|
||||||
value: 'more'
|
value: 'more',
|
||||||
|
hint: me.txtFormula + Common.Utils.String.platformKey('Shift+F3')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
@ -888,7 +889,8 @@ define([
|
||||||
{caption: '--'},
|
{caption: '--'},
|
||||||
{
|
{
|
||||||
caption: me.txtAdditional,
|
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.btnCurrencyStyle, this.tipDigStyleAccounting);
|
||||||
_updateHint(this.btnDecDecimal, this.tipDecDecimal);
|
_updateHint(this.btnDecDecimal, this.tipDecDecimal);
|
||||||
_updateHint(this.btnIncDecimal, this.tipIncDecimal);
|
_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.btnNamedRange, this.txtNamedRange);
|
||||||
_updateHint(this.btnClearStyle, this.tipClearStyle);
|
_updateHint(this.btnClearStyle, this.tipClearStyle);
|
||||||
_updateHint(this.btnCopyStyle, this.tipCopyStyle);
|
_updateHint(this.btnCopyStyle, this.tipCopyStyle);
|
||||||
|
|
Loading…
Reference in a new issue