summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-09-07 22:33:06 +1000
committerMaxime Coste <mawww@kakoune.org>2019-09-07 22:49:30 +1000
commita440869573a560c6a8111a605bf5564ab7ffaf7d (patch)
treec394ed46e594a30cfadebd3d1b22f6a3bf8c127c /src/input_handler.cc
parent04b5d44b3caf6373f7ed15ac7100c630d20cc599 (diff)
Fix modifiers support with mouse events
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index 07211c30..b48edce9 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -92,7 +92,8 @@ struct MouseHandler
Buffer& buffer = context.buffer();
BufferCoord cursor;
auto& selections = context.selections();
- switch (key.modifiers)
+ constexpr auto modifiers = Key::Modifiers::Control | Key::Modifiers::Alt | Key::Modifiers::Shift;
+ switch ((key.modifiers & ~modifiers).value)
{
case Key::Modifiers::MousePressRight:
m_dragging = false;