From 80743d1a164ef5d99f8d74bb4fae83c5d73bec4b Mon Sep 17 00:00:00 2001 From: Tobias Muehlberger Date: Sun, 3 May 2026 11:02:26 +0200 Subject: [PATCH] Added IGNORE_AUTOREPEAT for key event to get rid of stuck condition --- keybinding.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/keybinding.js b/keybinding.js index c427398..a9ca671 100644 --- a/keybinding.js +++ b/keybinding.js @@ -23,7 +23,10 @@ export const KeyboardShortcuts = class { } listenFor(accelerator, callback) { - let action = global.display.grab_accelerator(accelerator, 0); + let action = global.display.grab_accelerator( + accelerator, + Meta.KeyBindingFlags.IGNORE_AUTOREPEAT, + ); if (action == Meta.KeyBindingAction.NONE) { console.log(`Unable to grab accelerator ${accelerator}`); return;