diff --git a/src/keys.cc b/src/keys.cc index f98a5dc0..7eb55e46 100644 --- a/src/keys.cc +++ b/src/keys.cc @@ -114,7 +114,23 @@ KeyList parse_keys(StringView str) String key_to_str(Key key) { if (key.modifiers & Key::Modifiers::MouseEvent) - return ""; + { + const auto coord = key.coord() + CharCoord{1,1}; + switch (key.modifiers) + { + case Key::Modifiers::MousePos: + return format("", coord.line, coord.column); + case Key::Modifiers::MousePress: + return format("", coord.line, coord.column); + case Key::Modifiers::MouseRelease: + return format("", coord.line, coord.column); + case Key::Modifiers::MouseWheelDown: + return ""; + case Key::Modifiers::MouseWheelUp: + return ""; + default: kak_assert(false); + } + } bool named = false; String res;