mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[common] Fix in shortcuts dialog
This commit is contained in:
@ -278,7 +278,12 @@ define([
|
||||
return !shortcut.ascShortcut.asc_IsHidden();
|
||||
});
|
||||
const hintText = item.label + (firstShortcut ? ' (' + firstShortcut.keys.join('+') + ')' : '');
|
||||
item.btn.updateHint(hintText);
|
||||
|
||||
if(item.applyCallback) {
|
||||
item.applyCallback(item, hintText);
|
||||
} else {
|
||||
item.btn.updateHint(hintText);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -247,7 +247,8 @@ define([
|
||||
if (e.metaKey) keys.push('⌘');
|
||||
|
||||
if (!['Control', 'Shift', 'Alt', 'Meta'].includes(e.key)) {
|
||||
keys.push(DE.getController('Common.Controllers.Shortcuts').keyCodeToKeyName(e.keyCode));
|
||||
const app = (window.DE || window.PE || window.SSE || window.PDFE || window.VE);
|
||||
keys.push(app.getController('Common.Controllers.Shortcuts').keyCodeToKeyName(e.keyCode));
|
||||
ascShortcut.asc_SetKeyCode(e.keyCode);
|
||||
} else {
|
||||
ascShortcut.asc_SetKeyCode(null);
|
||||
|
||||
@ -102,7 +102,7 @@ define([
|
||||
'<% }); %>',
|
||||
'</div>',
|
||||
'<% if (action.isLocked) { %>',
|
||||
'<i class="icon toolbar__icon btn-favorite icon-lock"> </i>',
|
||||
'<i class="icon toolbar__icon btn-lock icon-lock"> </i>',
|
||||
'<% } else { %>',
|
||||
'<button type="button" class="action-edit btn-toolbar">',
|
||||
'<i class="icon toolbar__icon btn-edit"> </i>',
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
.action-keys {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex: 1;
|
||||
.margin-right(4px);
|
||||
|
||||
.action-keys-item {
|
||||
|
||||
Reference in New Issue
Block a user