From 680bae4fed6fb9155688b93de21395c8d0ae4882 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 17 Jul 2025 09:33:46 +0300 Subject: [PATCH] modal shortcuts suppress --- client/src/views/modal.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client/src/views/modal.js b/client/src/views/modal.js index d3a554d980..8e10c7e5a8 100644 --- a/client/src/views/modal.js +++ b/client/src/views/modal.js @@ -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);