mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-28 06:08:05 +03:00
Fix modifiers support with mouse events
This commit is contained in:
parent
04b5d44b3c
commit
a440869573
@ -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;
|
||||
|
@ -1318,8 +1318,7 @@ void NCursesUI::enable_mouse(bool enabled)
|
||||
fputs("\033[?1002l", stdout);
|
||||
fputs("\033[?1000l", stdout);
|
||||
fputs("\033[?1004l", stdout);
|
||||
if (m_builtin_key_parser)
|
||||
fputs("\033[?1006l", stdout);
|
||||
fputs("\033[?1006l", stdout);
|
||||
}
|
||||
fflush(stdout);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user