Skip to content

Commit

Permalink
docs(web): Update codes.ts with docs on use of the 50000 literal
Browse files Browse the repository at this point in the history
  • Loading branch information
jahorton authored May 30, 2024
1 parent 006f15b commit 8f35696
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/web/keyboard-processor/src/text/codes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
Expand Down

0 comments on commit 8f35696

Please sign in to comment.