mirror of https://github.com/lapce/lapce.git
santilize modifiers
This commit is contained in:
parent
1133f867f8
commit
8922087625
|
@ -638,6 +638,13 @@ pub fn toggle_selection(
|
|||
}
|
||||
|
||||
pub fn resolve_key_event(key: &KeyEvent) -> Option<&str> {
|
||||
let mut key = key.clone();
|
||||
key.mods = (Modifiers::ALT
|
||||
| Modifiers::CONTROL
|
||||
| Modifiers::SHIFT
|
||||
| Modifiers::META)
|
||||
& key.mods;
|
||||
|
||||
// Generates a `Modifiers` value to check against.
|
||||
macro_rules! modifiers {
|
||||
(ctrl) => {
|
||||
|
|
Loading…
Reference in New Issue