mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +08:00
[common] Show editing shortcuts
This commit is contained in:
@ -445,10 +445,10 @@ define([], function () {
|
||||
'<td>',
|
||||
'<div><div id="fms-cmb-macros"></div>',
|
||||
'</tr>',
|
||||
// '<tr>',
|
||||
// '<td><label><%= scope.strKeyboardShortcuts %><span class="new-hint"><%= Common.UI.SynchronizeTip.prototype.textNew.toUpperCase() %></span></label></td>',
|
||||
// '<td colspan="2"><button type="button" class="btn btn-text-default" id="fms-btn-keyboard-shortcuts" style="width:auto; display: inline-block;padding-right: 10px;padding-left: 10px;" data-hint="2" data-hint-direction="bottom" data-hint-offset="medium"><%= scope.txtCustomize %></button></div></td>',
|
||||
// '</tr>',
|
||||
'<tr>',
|
||||
'<td><label><%= scope.strKeyboardShortcuts %><span class="new-hint"><%= Common.UI.SynchronizeTip.prototype.textNew.toUpperCase() %></span></label></td>',
|
||||
'<td colspan="2"><button type="button" class="btn btn-text-default" id="fms-btn-keyboard-shortcuts" style="width:auto; display: inline-block;padding-right: 10px;padding-left: 10px;" data-hint="2" data-hint-direction="bottom" data-hint-offset="medium"><%= scope.txtCustomize %></button></div></td>',
|
||||
'</tr>',
|
||||
'<tr>',
|
||||
'<td><label><%= scope.strFontSizeType %></label></td>',
|
||||
'<td><span id="fms-cmb-font-size-type"></span></td>',
|
||||
@ -779,10 +779,10 @@ define([], function () {
|
||||
dataHintOffset: 'big'
|
||||
});
|
||||
|
||||
// this.btnKeyboardMacros = new Common.UI.Button({
|
||||
// el: $markup.findById('#fms-btn-keyboard-shortcuts')
|
||||
// });
|
||||
// this.btnKeyboardMacros.on('click', _.bind(this.onClickKeyboardShortcut, this));
|
||||
this.btnKeyboardMacros = new Common.UI.Button({
|
||||
el: $markup.findById('#fms-btn-keyboard-shortcuts')
|
||||
});
|
||||
this.btnKeyboardMacros.on('click', _.bind(this.onClickKeyboardShortcut, this));
|
||||
|
||||
this.cmbFontSizeType = new Common.UI.ComboBox({
|
||||
el : $markup.find('#fms-cmb-font-size-type'),
|
||||
@ -1193,12 +1193,12 @@ define([], function () {
|
||||
this.dlgAutoCorrect.show();
|
||||
},
|
||||
|
||||
// onClickKeyboardShortcut: function() {
|
||||
// const win = new Common.Views.ShortcutsDialog({
|
||||
// api: this.api
|
||||
// });
|
||||
// win.show();
|
||||
// },
|
||||
onClickKeyboardShortcut: function() {
|
||||
const win = new Common.Views.ShortcutsDialog({
|
||||
api: this.api
|
||||
});
|
||||
win.show();
|
||||
},
|
||||
|
||||
customizeQuickAccess: function () {
|
||||
if (this.dlgQuickAccess && this.dlgQuickAccess.isVisible()) return;
|
||||
|
||||
@ -232,8 +232,8 @@ require([
|
||||
'common/main/lib/view/DocumentPropertyDialog',
|
||||
'common/main/lib/view/MacrosDialog',
|
||||
'common/main/lib/view/MacrosAiDialog',
|
||||
// 'common/main/lib/view/ShortcutsDialog',
|
||||
// 'common/main/lib/view/ShortcutsEditDialog',
|
||||
'common/main/lib/view/ShortcutsDialog',
|
||||
'common/main/lib/view/ShortcutsEditDialog',
|
||||
'common/main/lib/component/MonacoEditor',
|
||||
|
||||
'documenteditor/main/app/controller/DocumentHolderExt',
|
||||
|
||||
@ -33,8 +33,8 @@ require([
|
||||
'common/main/lib/view/DocumentPropertyDialog',
|
||||
'common/main/lib/view/MacrosDialog',
|
||||
'common/main/lib/view/MacrosAiDialog',
|
||||
// 'common/main/lib/view/ShortcutsDialog',
|
||||
// 'common/main/lib/view/ShortcutsEditDialog',
|
||||
'common/main/lib/view/ShortcutsDialog',
|
||||
'common/main/lib/view/ShortcutsEditDialog',
|
||||
'common/main/lib/component/MonacoEditor',
|
||||
|
||||
'documenteditor/main/app/controller/DocumentHolderExt',
|
||||
|
||||
Reference in New Issue
Block a user