-
Notifications
You must be signed in to change notification settings - Fork 6k
Conversation
|
||
default: | ||
return false; | ||
} |
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.
Question: I don't know how custom shortcuts work very well. For example if a user/operating system defined a combination of keys as tab (for example F3 also works as tab), will this code still work?
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.
That will depend on how the OS is sending the event to the browser.
My guess is that the OS or the keyboard is doing the mapping and sending a Tab
key event to the browser. For example, some keyboards have a Copy
and Paste
keys. So I attached a keydown
event listener in the browser and clicked the Copy
key in my keyboard. I got a ctrl
then a c
.
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.
Thanks Mouad, I left a question, we can also address it in a next cl if we need to add a check about it.
git@github.com:flutter/engine.git/compare/49dbaae818cd...3a445ed git log 49dbaae..3a445ed --no-merges --oneline 2019-10-08 30870216+gaaclarke@users.noreply.github.com Made _printDebug only happen on debug builds of the engine for now. (flutter/engine#12980) 2019-10-08 devoncarew@google.com remove references to package:_chrome (flutter/engine#12931) 2019-10-08 ditman@gmail.com Open source canvas tests from flutter_web_ui (flutter/engine#12819) 2019-10-08 mouad.debbar@gmail.com Prevent default when Tab is clicked (flutter/engine#12986) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC chinmaygarde@google.com on the revert to ensure that a human is aware of the problem. To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
git@github.com:flutter/engine.git/compare/49dbaae818cd...3a445ed git log 49dbaae..3a445ed --no-merges --oneline 2019-10-08 30870216+gaaclarke@users.noreply.github.com Made _printDebug only happen on debug builds of the engine for now. (flutter/engine#12980) 2019-10-08 devoncarew@google.com remove references to package:_chrome (flutter/engine#12931) 2019-10-08 ditman@gmail.com Open source canvas tests from flutter_web_ui (flutter/engine#12819) 2019-10-08 mouad.debbar@gmail.com Prevent default when Tab is clicked (flutter/engine#12986) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC chinmaygarde@google.com on the revert to ensure that a human is aware of the problem. To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
Hitting
Tab
inside a text field messes up the focus in the browser. We should prevent default and let Flutter handle it.This PR also fixes a leak of
Keyboard
initialization across tests.Issue: flutter/flutter#41396