-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] Ignore meta, ctrl and alt in keyboard modality detection #17924
[core] Ignore meta, ctrl and alt in keyboard modality detection #17924
Conversation
Details of bundle changes.Comparing: 5d564f9...db83f85
|
@@ -119,7 +128,6 @@ function handleBlurVisible() { | |||
window.clearTimeout(hadFocusVisibleRecentlyTimeout); | |||
hadFocusVisibleRecentlyTimeout = window.setTimeout(() => { | |||
hadFocusVisibleRecently = false; | |||
window.clearTimeout(hadFocusVisibleRecentlyTimeout); |
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.
cleanup
@@ -57,7 +67,6 @@ function handleKeyDown() { | |||
* This avoids the situation where a user presses a key on an already focused | |||
* element, and then clicks on a different element, focusing it with a | |||
* pointing device, while we still think we're in keyboard modality. | |||
* @param {Event} e |
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.
cleanup
* @param {KeyboardEvent} event | ||
*/ | ||
function handleKeyDown(event) { | ||
if (event.metaKey || event.altKey || event.ctrlKey) { |
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.
the real change
Thank you |
Closes #16976
Fixes the above mentioned behavior.