From c7e08cb1ac83e2171db65fa1d185be44a2b08064 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Tue, 25 Jun 2024 09:02:44 +0200 Subject: [PATCH] Remove comma fallback. --- frontend/src/app/framework/utils/keys.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/app/framework/utils/keys.ts b/frontend/src/app/framework/utils/keys.ts index ae79ed572a..50d78de01b 100644 --- a/frontend/src/app/framework/utils/keys.ts +++ b/frontend/src/app/framework/utils/keys.ts @@ -9,7 +9,6 @@ export module Keys { const ALT = 18; - const COMMA = 188; const CONTROL = 17; const DELETE = 8; const ENTER = 13; @@ -32,7 +31,7 @@ export module Keys { export function isComma(event: KeyboardEvent) { const key = event.key?.toUpperCase(); - return key === ',' || event.keyCode === COMMA; + return key === ','; } export function isDelete(event: KeyboardEvent) {