[common] Show editing shortcuts

This commit is contained in:
Alexey Koshelev
2025-10-24 13:01:03 +03:00
parent 39c6e738d5
commit c22d5b7455
12 changed files with 72 additions and 72 deletions

View File

@ -388,10 +388,10 @@ define([], function () {
'<td><label><%= scope.strFontRender %></label></td>',
'<td><span id="fms-cmb-font-render"></span></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.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 class ="divider-group"></tr>',
'<tr class="fms-btn-apply">',
'<td style="padding-top:15px; padding-bottom: 15px;"><button class="btn normal dlg-btn primary" data-hint="2" data-hint-direction="bottom" data-hint-offset="medium"><%= scope.okButtonText %></button></td>',
@ -609,10 +609,10 @@ define([], function () {
});
this.cmbFontRender.on('selected', _.bind(this.onFontRenderSelected, this));
// 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.cmbUnit = new Common.UI.ComboBox({
el : $markup.findById('#fms-cmb-unit'),
@ -932,12 +932,12 @@ define([], function () {
this._fontRender = combo.getValue();
},
// 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;

View File

@ -215,8 +215,8 @@ require([
'common/main/lib/view/CustomizeQuickAccessDialog',
'common/main/lib/view/PasswordDialog',
'common/main/lib/component/TextareaField',
// 'common/main/lib/view/ShortcutsDialog',
// 'common/main/lib/view/ShortcutsEditDialog',
'common/main/lib/view/ShortcutsDialog',
'common/main/lib/view/ShortcutsEditDialog',
'pdfeditor/main/app/controller/DocumentHolderExt',
'pdfeditor/main/app/view/FileMenuPanels',

View File

@ -25,8 +25,8 @@ require([
'common/main/lib/view/CustomizeQuickAccessDialog',
'common/main/lib/view/PasswordDialog',
'common/main/lib/component/TextareaField',
// 'common/main/lib/view/ShortcutsDialog',
// 'common/main/lib/view/ShortcutsEditDialog',
'common/main/lib/view/ShortcutsDialog',
'common/main/lib/view/ShortcutsEditDialog',
'pdfeditor/main/app/controller/DocumentHolderExt',
'pdfeditor/main/app/view/FileMenuPanels',