summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Tom <twitchyliquid64@ciphersink.net>2020-12-15 20:26:04 -0800
committerLibravatar Tom <twitchyliquid64@ciphersink.net>2020-12-16 20:46:36 -0800
commit498188e735c4e9f2158adeeeee9a9e8bf082576b (patch)
tree5f4596328ee7041107f074431e11c5e928b952c3
parent07b570036aad3f42578876e1a299a0577e6761ae (diff)
downloadiced-498188e735c4e9f2158adeeeee9a9e8bf082576b.tar.gz
iced-498188e735c4e9f2158adeeeee9a9e8bf082576b.tar.bz2
iced-498188e735c4e9f2158adeeeee9a9e8bf082576b.zip
text_input: Do not capture tab/up/down keys
-rw-r--r--native/src/widget/text_input.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs
index 2fd9cec1..6e6371b2 100644
--- a/native/src/widget/text_input.rs
+++ b/native/src/widget/text_input.rs
@@ -549,6 +549,11 @@ where
self.state.keyboard_modifiers =
keyboard::Modifiers::default();
}
+ keyboard::KeyCode::Tab
+ | keyboard::KeyCode::Up
+ | keyboard::KeyCode::Down => {
+ return event::Status::Ignored;
+ }
_ => {}
}
@@ -561,6 +566,11 @@ where
keyboard::KeyCode::V => {
self.state.is_pasting = None;
}
+ keyboard::KeyCode::Tab
+ | keyboard::KeyCode::Up
+ | keyboard::KeyCode::Down => {
+ return event::Status::Ignored;
+ }
_ => {}
}