mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Return KeyReaction::Nothing
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.
This commit is contained in:
parent
2d0c7166f1
commit
319153640c
2 changed files with 4 additions and 14 deletions
|
@ -544,7 +544,6 @@ impl<T: ClipboardProvider> TextInput<T> {
|
|||
self.adjust_vertical(28, maybe_select);
|
||||
KeyReaction::RedrawSelection
|
||||
}
|
||||
(None, Key::Tab) => KeyReaction::TriggerDefaultAction,
|
||||
_ => KeyReaction::Nothing,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue