Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 086bdae

Browse files
committed
Rename AltGraph to Alt on Windows
1 parent cbf34ad commit 086bdae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/helpers.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ exports.keystrokeForKeyboardEvent = (event, customKeystrokeResolvers) ->
168168
isNonCharacterKey = key.length > 1
169169
if isNonCharacterKey
170170
key = NON_CHARACTER_KEY_NAMES_BY_KEYBOARD_EVENT_KEY[key] ? key.toLowerCase()
171+
if key is "altgraph" and process.platform is "win32"
172+
key = "alt"
171173
else
172174
# Deal with caps-lock issues. Key bindings should always adjust the
173175
# capitalization of the key based on the shiftKey state and never the state

0 commit comments

Comments
 (0)