diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-09-07 22:33:06 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-09-07 22:49:30 +1000 |
| commit | a440869573a560c6a8111a605bf5564ab7ffaf7d (patch) | |
| tree | c394ed46e594a30cfadebd3d1b22f6a3bf8c127c /src/input_handler.cc | |
| parent | 04b5d44b3caf6373f7ed15ac7100c630d20cc599 (diff) | |
Fix modifiers support with mouse events
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 3 |
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; |
