diff options
author | aristocratos <gnmjpl@gmail.com> | 2021-11-24 21:58:21 +0100 |
---|---|---|
committer | aristocratos <gnmjpl@gmail.com> | 2021-11-24 21:58:21 +0100 |
commit | 953216f614bb3a2afea0105521253720fbdf8a95 (patch) | |
tree | 257e89747d57787965407508ae252cd7ac86f002 /src | |
parent | e1074cd15b713016857ae375adf1d62cf731a7d2 (diff) |
Disabled unused mouse_released event
Diffstat (limited to 'src')
-rw-r--r-- | src/btop_input.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/btop_input.cpp b/src/btop_input.cpp index d7b8ece..cf7b934 100644 --- a/src/btop_input.cpp +++ b/src/btop_input.cpp @@ -105,14 +105,14 @@ namespace Input { if (key.starts_with("[<")) { std::string_view key_view = key; string mouse_event; - if (key_view.starts_with("[<0;") and key_view.ends_with('M')) { + if (key_view.starts_with("[<0;") and key_view.find('M') != std::string_view::npos) { mouse_event = "mouse_click"; key_view.remove_prefix(4); } - else if (key_view.starts_with("[<0;") and key_view.ends_with('m')) { - mouse_event = "mouse_release"; - key_view.remove_prefix(4); - } + // else if (key_view.starts_with("[<0;") and key_view.ends_with('m')) { + // mouse_event = "mouse_release"; + // key_view.remove_prefix(4); + // } else if (key_view.starts_with("[<64;")) { mouse_event = "mouse_scroll_up"; key_view.remove_prefix(5); |