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,7 +1318,6 @@ 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);
|
||||
}
|
||||
fflush(stdout);
|
||||
|
|
Loading…
Reference in New Issue
Block a user