Skip to content

Commit

Permalink
Force the entire KC string to match shiftedKcRegExp
Browse files Browse the repository at this point in the history
This is useful to avoid false positives like "RCTL(S(KC_A))".
  • Loading branch information
precondition committed Aug 12, 2022
1 parent b193c2b commit fa18fe3
Show file tree
Hide file tree
Showing 2 changed files with 230 additions and 106 deletions.
2 changes: 1 addition & 1 deletion src/i18n/keymap_extras/convert_keymap_extras_header.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function computeKcInfo(lines, intl2us) {
keysym: readableKeysym,
name: readableKeysym
});
const shiftedKcRegExp = /S\(\w+\)/;
const shiftedKcRegExp = /^(?:S|LSFT)\(\w+\)$/;
if (shiftedKcRegExp.test(macroExpansion)) {
const basicKc = extractBasicKc(macroExpansion);
const basicUSKc = translateToUS(basicKc, intl2us);
Expand Down
Loading

0 comments on commit fa18fe3

Please sign in to comment.