summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-08-15 07:22:42 +0200
committerLibravatar GitHub <noreply@github.com>2023-08-15 07:22:42 +0200
commit675020407a17c5de6c83cfc1bc3eba2c876fde90 (patch)
tree56351b218ed770feb5512213186555edbfd2152a /widget
parentcb8b70bec3e8bbf809e7d8ffc559adb712f45e14 (diff)
parent3940947db7f474ec97fe1030678f21a7f19a5c01 (diff)
downloadiced-675020407a17c5de6c83cfc1bc3eba2c876fde90.tar.gz
iced-675020407a17c5de6c83cfc1bc3eba2c876fde90.tar.bz2
iced-675020407a17c5de6c83cfc1bc3eba2c876fde90.zip
Merge pull request #2006 from casperstorm/ensure-no-paste-with-alt
Ensure we don't paste while holding ALT
Diffstat (limited to '')
-rw-r--r--widget/src/text_input.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/widget/src/text_input.rs b/widget/src/text_input.rs
index b899eb67..ef6d31ac 100644
--- a/widget/src/text_input.rs
+++ b/widget/src/text_input.rs
@@ -842,7 +842,9 @@ where
shell.publish(message);
}
keyboard::KeyCode::V => {
- if state.keyboard_modifiers.command() {
+ if state.keyboard_modifiers.command()
+ && !state.keyboard_modifiers.alt()
+ {
let content = match state.is_pasting.take() {
Some(content) => content,
None => {