From 917c03784b5b9d9a455dc2c4485655b09b422b9a Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Thu, 6 Aug 2026 08:55:41 +0200 Subject: [PATCH] :bug: Fix CI --- frontend/packages/mousetrap/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/packages/mousetrap/index.js b/frontend/packages/mousetrap/index.js index 02b6fe3880..4d0576e417 100644 --- a/frontend/packages/mousetrap/index.js +++ b/frontend/packages/mousetrap/index.js @@ -213,10 +213,6 @@ function _characterFromEvent(e) { return character; } - if (typeof e.key === "string") { - return e.key.toLowerCase(); - } - // for non keypress events the special maps are needed if (_MAP[e.which]) { return _MAP[e.which]; @@ -227,6 +223,9 @@ function _characterFromEvent(e) { } // if it is not in the special map + if (typeof e.key === "string") { + return e.key.toLowerCase(); + } // with keydown and keyup events the character seems to always // come in as an uppercase character whether you are pressing shift