From 2eb69f988372a3e83114bea79e7b9e4fb7402ec3 Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Tue, 14 Nov 2023 08:52:42 +0700 Subject: [PATCH] chore(web): resolves old TODO --- .../osk/src/input/gestures/specsForLayout.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/web/src/engine/osk/src/input/gestures/specsForLayout.ts b/web/src/engine/osk/src/input/gestures/specsForLayout.ts index 305885e81e6..b653fa328f3 100644 --- a/web/src/engine/osk/src/input/gestures/specsForLayout.ts +++ b/web/src/engine/osk/src/input/gestures/specsForLayout.ts @@ -504,19 +504,8 @@ export function specialKeyStartModel(): GestureModel { { model: { ...instantContactResolutionModel(), - allowsInitialState: (incoming, dummy, baseItem) => { - // TODO: needs better abstraction, probably. - - // But, to get started... we can just use a simple hardcoded approach. - const modifierKeyIds = ['K_LOPT', 'K_ROPT', 'K_BKSP']; - for(const modKeyId of modifierKeyIds) { - if(baseItem?.key.spec.id == modKeyId) { - return true; - } - } - - return false; - } + // Filtering is done via `gestureKeyFilter` as defined within `gestureSetForLayout` above. + // If we've gotten to this point, we're already safe to assume the base key is valid. }, endOnResolve: false // keyboard-selection longpress - would be nice to not need to lift the finger // in app/browser form.