Skip to content

Commit 5e6cead

Browse files
committed
fix(layouts.py): Map TRNS to ROLL_OVER
Why does QMK have multiple aliases for everything defined in multiple ways...
1 parent 14c079e commit 5e6cead

File tree

6 files changed

+399
-402
lines changed

6 files changed

+399
-402
lines changed

layouts.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@
8080
'SCLN': 'SEMICOLON',
8181
'SLSH': 'SLASH',
8282
'SPC': 'SPACE',
83-
'SYSTEM_SLEEP': 'SUSPEND'
83+
'SYSTEM_SLEEP': 'SUSPEND',
84+
'TRNS': 'ROLL_OVER',
8485
}
8586

8687
def extract_scancodes(ecdir: str, is_qmk: bool) -> List[Tuple[str, int]]:
@@ -179,10 +180,6 @@ def scancode_map(x: int, code: str) -> str:
179180
if is_qmk:
180181
code = QMK_MAPPING.get(code, code)
181182

182-
# Handle TRNS
183-
if layer_scancodes and code == 'TRNS':
184-
code = layer_scancodes[-1][x]
185-
186183
return code
187184

188185
scancodes = [scancode_map(x, i) for x, i in enumerate(scancodes)]

0 commit comments

Comments
 (0)