[VE] Add static shortcunts in hints

This commit is contained in:
Alexey Koshelev
2025-10-05 20:47:24 +03:00
parent c7b5132961
commit 72c4c07914
3 changed files with 4 additions and 5 deletions

View File

@ -925,10 +925,9 @@ define([
if ( config.canPrint ) {
this.btnPrint = createTitleButton('toolbar__icon icon--inverse btn-print', $html.findById('#slot-hbtn-print'), undefined, 'bottom', 'big', 'P');
this.btnPrint.updateHint(this.tipPrint);
this.shortcutHints.PrintPreviewAndPrint = {
btn: me.btnPrint,
label: me.tipPrint
label: me.tipPrint + (!!window.VE ? (Common.Utils.String.platformKey('Ctrl+P')) : '')
};
}

View File

@ -119,7 +119,7 @@ define([
VE.getController('Common.Controllers.Shortcuts').updateShortcutHints({
OpenChatPanel: {
btn: this.btnChat,
label: this.tipChat
label: this.tipChat + Common.Utils.String.platformKey('Alt+Q', ' (' + (Common.Utils.isMac ? Common.Utils.String.textCtrl + '+' : '') + '{0})')
}
});

View File

@ -57,11 +57,11 @@ define([
VE.getController('Common.Controllers.Shortcuts').updateShortcutHints({
ZoomOut: {
btn: me.btnZoomDown,
label: me.tipZoomOut
label: me.tipZoomOut + Common.Utils.String.platformKey('Ctrl+-')
},
ZoomIn: {
btn: me.btnZoomUp,
label: me.tipZoomIn
label: me.tipZoomIn + Common.Utils.String.platformKey('Ctrl++')
}
});