aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/textinput.rs
diff options
context:
space:
mode:
authorJean-Marie Comets <jean.marie.comets@gmail.com>2016-11-12 15:49:00 +0100
committerJean-Marie Comets <jean.marie.comets@gmail.com>2016-11-12 15:49:00 +0100
commit319153640ca11a386df944dafc45ab1f18192534 (patch)
treee4fb1c55832afc7a75d1891342af1762fe7c452f /components/script/textinput.rs
parent2d0c7166f118efed9f25fbe7b4f01f9521829418 (diff)
downloadservo-319153640ca11a386df944dafc45ab1f18192534.tar.gz
servo-319153640ca11a386df944dafc45ab1f18192534.zip
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.
Diffstat (limited to 'components/script/textinput.rs')
-rw-r--r--components/script/textinput.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/components/script/textinput.rs b/components/script/textinput.rs
index 25243d739ab..5f04b5b187e 100644
--- a/components/script/textinput.rs
+++ b/components/script/textinput.rs
@@ -544,7 +544,6 @@ impl<T: ClipboardProvider> TextInput<T> {
self.adjust_vertical(28, maybe_select);
KeyReaction::RedrawSelection
}
- (None, Key::Tab) => KeyReaction::TriggerDefaultAction,
_ => KeyReaction::Nothing,
}
}