* select.cc (peek_console): Don't report read_ready on mouse events unless we
are looking for mouse events. * fhandler.h (fhandler_console::mouse_aware): New method.
This commit is contained in:
@ -638,7 +638,10 @@ peek_console (select_record *me, int ignra)
|
||||
else if (irec.EventType == MOUSE_EVENT &&
|
||||
(irec.Event.MouseEvent.dwEventFlags == 0 ||
|
||||
irec.Event.MouseEvent.dwEventFlags == DOUBLE_CLICK))
|
||||
return me->read_ready = 1;
|
||||
{
|
||||
if (fh->mouse_aware ())
|
||||
return me->read_ready = 1;
|
||||
}
|
||||
else if (irec.EventType == KEY_EVENT && irec.Event.KeyEvent.bKeyDown == TRUE &&
|
||||
(irec.Event.KeyEvent.uChar.AsciiChar || get_nonascii_key (irec, tmpbuf)))
|
||||
return me->read_ready = 1;
|
||||
|
Reference in New Issue
Block a user