Skip to content

Fix 'Window' key is treated as 'unknown' in Firefox (#175739)#175740

Merged
ulugbekna merged 2 commits into
microsoft:mainfrom
YinDongFang:bugfix/window-key-in-firefox
Mar 28, 2023
Merged

Fix 'Window' key is treated as 'unknown' in Firefox (#175739)#175740
ulugbekna merged 2 commits into
microsoft:mainfrom
YinDongFang:bugfix/window-key-in-firefox

Conversation

@YinDongFang

Copy link
Copy Markdown

fix #175739

  1. set eventKeyCode to 91 for KeyCode.Meta
  2. remove if branch keyCode === 91 for isWebKit

@YinDongFang

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@alexdima alexdima requested review from alexdima and ulugbekna March 15, 2023 22:09

@ulugbekna ulugbekna left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look correct to me.

@ulugbekna ulugbekna self-assigned this Mar 17, 2023
@alexdima

alexdima commented Mar 22, 2023

Copy link
Copy Markdown
Member

I did a quick pass over various combinations we support, here's what I noticed using a w3c test page:

OS combination LeftMeta RightMeta
mac / Edge 91 93
mac / Safari 91 93
mac / Firefox 224 224
win / Edge 91 92
win / Firefox 91 91
ubuntu / Chromium (not received) 92
ubuntu / Firefox (not received) 91

@ulugbekna Does this match what you tested as well?

@ulugbekna

Copy link
Copy Markdown
Contributor

Yes, but I used vscode and vscode.dev "kb troubleshooting"; didn't know about this website :D

OS combination LeftMeta RightMeta Matches AlexD's table
mac / Edge 91 93 yes
mac / Safari 91 93 yes
mac / Firefox 224 224 yes (Firefox is weird)
win / chrome 91 92 Missing in AlexD table
win / Edge 91 92 yes
win / Firefox 91 91 yes
ubuntu / Chromium (not received) 92 yes
ubuntu / Firefox (not received) 91 yes

@alexdima alexdima added this to the April 2023 milestone Mar 23, 2023
@ulugbekna ulugbekna enabled auto-merge (rebase) March 27, 2023 14:57
@YinDongFang YinDongFang requested review from ulugbekna and removed request for ulugbekna March 28, 2023 12:54
@ulugbekna ulugbekna merged commit 369f0b0 into microsoft:main Mar 28, 2023
@ulugbekna

Copy link
Copy Markdown
Contributor

Thanks @YinDongFang :-)

@github-actions github-actions Bot locked and limited conversation to collaborators May 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'Windows' key is treated as 'unknown' in Firefox

4 participants