From 8f3569681b544f3bd5ebcffb161c0ea6179a1b50 Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Thu, 30 May 2024 16:56:30 +0700 Subject: [PATCH] docs(web): Update codes.ts with docs on use of the 50000 literal --- common/web/keyboard-processor/src/text/codes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/web/keyboard-processor/src/text/codes.ts b/common/web/keyboard-processor/src/text/codes.ts index 654acad68b1..aaeaeec19ea 100644 --- a/common/web/keyboard-processor/src/text/codes.ts +++ b/common/web/keyboard-processor/src/text/codes.ts @@ -95,6 +95,8 @@ const Codes = { case 'K_CAPS': return true; default: + // 50000: start of the range defining key-codes for special frame-key symbols + // and specialized common layer-switching key IDs. See .keyCodes above. if(Codes.keyCodes[keyID] >= 50000) { // A few are used by `sil_euro_latin`. return true; // is a 'K_' key defined for layer shifting or 'control' use. }