-
Notifications
You must be signed in to change notification settings - Fork 975
Update Windows titlebar code to ignore AltGr #4628
Conversation
@@ -0,0 +1,14 @@ | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove newlines from start of file
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
const KeyLocationCodes = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: keyLocationCodes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit2: Name it the same you call variables you require to for better grep-ability, so keyLocations
@@ -131,6 +132,11 @@ class Main extends ImmutableComponent { | |||
const customTitlebar = this.customTitlebar | |||
switch (e.which) { | |||
case keyCodes.ALT: | |||
// Ignore right alt (AltGr) | |||
if (e.location === keyLocations.DOM_KEY_LOCATION_RIGHT) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
neat I didn't even know this existed.
A few nits, but after that I don't need to see this again so just merge directly to master. |
git rebase -i
to squash commits (if needed).Update Windows titlebar code to ignore AltGr
Fixes #4626
Auditors: @bbondy
Test plan