Fix Copy action being triggered without any modifiers

This commit is contained in:
Héctor Ramón Jiménez 2023-09-14 22:55:54 +02:00
parent 8e6e37e0ce
commit f7fc13d98c
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -421,7 +421,9 @@ impl Update {
keyboard::KeyCode::Backspace => edit(Action::Backspace),
keyboard::KeyCode::Delete => edit(Action::Delete),
keyboard::KeyCode::Escape => Some(Self::Unfocus),
keyboard::KeyCode::C => Some(Self::Copy),
keyboard::KeyCode::C if modifiers.command() => {
Some(Self::Copy)
}
keyboard::KeyCode::V
if modifiers.command() && !modifiers.alt() =>
{