diff --git a/src/keys.cc b/src/keys.cc index e4fb52f3..a1a6d4ad 100644 --- a/src/keys.cc +++ b/src/keys.cc @@ -100,6 +100,9 @@ KeyList parse_keys(StringView str) String key_to_str(Key key) { + if (key.modifiers & Key::Modifiers::MouseEvent) + return ""; + bool named = false; String res; auto it = find_if(keynamemap, [&key](const KeyAndName& item) diff --git a/src/keys.hh b/src/keys.hh index 90a366fc..7cb957df 100644 --- a/src/keys.hh +++ b/src/keys.hh @@ -24,6 +24,8 @@ struct Key MousePos = 1 << 4, MouseWheelDown = 1 << 5, MouseWheelUp = 1 << 6, + MouseEvent = MousePress | MouseRelease | MousePos | + MouseWheelDown | MouseWheelUp, }; enum NamedKey : Codepoint {