From 3d36f3e4d7c91fcfae99865d8cbf3144a56f67b0 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 5 Apr 2023 19:52:42 +0200 Subject: [PATCH] editor: `ctrl + e` not working when hitm multiple times without releasing `ctrl` --- CHANGELOG.md | 1 + src/client/ui/context-menu.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cdbd9e72..1b1f9d59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - bug fixes - widgets: circular value feedback issues + - editor: `ctrl + e` not working when hitm multiple times without releasing `ctrl` - misc - add linux rpm packages diff --git a/src/client/ui/context-menu.js b/src/client/ui/context-menu.js index fc96bd56..0ff808e9 100644 --- a/src/client/ui/context-menu.js +++ b/src/client/ui/context-menu.js @@ -6,6 +6,10 @@ var html = require('nanohtml'), MENU_CONTAINER +// monkey patch keyboardJS to prevent loosing track of pressed keys while +// switching contexts. Works as long as we don't call reset() or pause() +keyboardJS.releaseAllKeys = ()=>{} + class ContextMenu extends UiWidget { constructor(options={}){