modal shortcuts suppress

This commit is contained in:
Yuri Kuznetsov
2025-07-17 09:33:46 +03:00
parent 3443a6a052
commit 680bae4fed
+2 -5
View File
@@ -457,11 +457,8 @@ class ModalView extends View {
* @private
*/
initShortcuts() {
if (!this.shortcutKeys) {
return;
}
this.shortcutManager.add(this, this.shortcutKeys, {stack: true});
// Shortcuts to be added even if there's no keys set to suppress current shortcuts.
this.shortcutManager.add(this, this.shortcutKeys ?? {}, {stack: true});
this.once('remove', () => {
this.shortcutManager.remove(this);