Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upReturn `KeyReaction::Nothing` for a Tab event #14184
Conversation
highfive
commented
Nov 12, 2016
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @metajack (or someone else) soon. |
highfive
commented
Nov 12, 2016
highfive
commented
Nov 12, 2016
|
Looks good, but appears you accidentally deleted a TODO. |
| keyevent.AltKey(), | ||
| keyevent.MetaKey()), | ||
| // Issue #12071: Tab should not submit forms | ||
| // TODO(3982): Implement form keyboard navigation |
This comment has been minimized.
This comment has been minimized.
|
It was, but I hesitated. I commented on #3982, explaining that I believe On Sat, Nov 12, 2016 at 4:33 PM Jack Moffitt notifications@github.com
|
|
@bors-servo r+ That's fair. |
|
|
Return `KeyReaction::Nothing` for a Tab event Do nothing instead of triggering the default action for a tab event. Hitting the tab key in an html text input shouldn't submit the form, and for any text input, the tab key should have a particular action associated, not the default action. This cleans up #12701. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14184) <!-- Reviewable:end -->
|
|
jmcomets commentedNov 12, 2016
•
edited by larsbergstrom
Do nothing instead of triggering the default action for a tab event.
Hitting the tab key in an html text input shouldn't submit the form, and for any text input, the tab key should have a particular action associated, not the default action.
This cleans up #12701.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is