Do not clone Key
This commit is contained in:
parent
1c82463dfb
commit
8b5a235129
3 changed files with 4 additions and 5 deletions
|
|
@ -1019,7 +1019,7 @@ impl Application for App {
|
|||
},
|
||||
Message::Key(modifiers, key) => {
|
||||
for (key_bind, action) in self.key_binds.iter() {
|
||||
if key_bind.matches(modifiers, key.clone()) {
|
||||
if key_bind.matches(modifiers, &key) {
|
||||
return self.update(action.message(None));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue