Skip to content

Commit caec920

Browse files
authored
Merge pull request #114 from github/no-symbol-plane-without-alt
Don't use symbol plane unless `Alt` is pressed
2 parents 13f3419 + fba17fb commit caec920

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hotkey.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ export function eventToHotkeyString(
4747
}
4848

4949
if (!modifierKeyNames.includes(key)) {
50-
const nonOptionPlaneKey = matchApplePlatform.test(platform) ? macosSymbolLayerKeys[key] ?? key : key
50+
const nonOptionPlaneKey =
51+
hotkeyString.includes('Alt') && matchApplePlatform.test(platform) ? macosSymbolLayerKeys[key] ?? key : key
5152
const syntheticKey = syntheticKeyNames[nonOptionPlaneKey] ?? nonOptionPlaneKey
5253
hotkeyString.push(syntheticKey)
5354
}

src/macos-symbol-layer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export const macosSymbolLayerKeys: Record<string, string> = {
1616
['º']: '0',
1717
['–']: '-',
1818
['≠']: '=',
19-
['`']: '`',
2019
['⁄']: '!',
2120
['€']: '@',
2221
['‹']: '#',

0 commit comments

Comments
 (0)