mirror of
https://github.com/reactos/wine.git
synced 2025-02-27 00:08:18 +00:00
In curses backend, apply the quick-edit directive from registry.
This commit is contained in:
parent
15cc17fbcf
commit
c7b5d0aa58
@ -755,16 +755,24 @@ BOOL WCCURSES_InitBackend(struct inner_data* data)
|
|||||||
intrflush(stdscr, FALSE);
|
intrflush(stdscr, FALSE);
|
||||||
nodelay(stdscr, TRUE);
|
nodelay(stdscr, TRUE);
|
||||||
keypad(stdscr, TRUE);
|
keypad(stdscr, TRUE);
|
||||||
mousemask(BUTTON1_PRESSED|BUTTON1_RELEASED|
|
if (data->curcfg.quick_edit)
|
||||||
BUTTON2_PRESSED|BUTTON2_RELEASED|
|
{
|
||||||
BUTTON3_PRESSED|BUTTON3_RELEASED|
|
mousemask(BUTTON1_PRESSED|BUTTON1_RELEASED|
|
||||||
BUTTON_SHIFT|BUTTON_CTRL|BUTTON_ALT|REPORT_MOUSE_POSITION,
|
BUTTON2_PRESSED|BUTTON2_RELEASED|
|
||||||
&PRIVATE(data)->initial_mouse_mask);
|
BUTTON3_PRESSED|BUTTON3_RELEASED|
|
||||||
/* no click event generation... we just need button up/down events
|
BUTTON_SHIFT|BUTTON_CTRL|BUTTON_ALT|REPORT_MOUSE_POSITION,
|
||||||
* it doesn't seem that mouseinterval(-1) behaves as documented...
|
&PRIVATE(data)->initial_mouse_mask);
|
||||||
* 0 seems to be better value to disable click event generation
|
/* no click event generation... we just need button up/down events
|
||||||
*/
|
* it doesn't seem that mouseinterval(-1) behaves as documented...
|
||||||
mouseinterval(0);
|
* 0 seems to be better value to disable click event generation
|
||||||
|
*/
|
||||||
|
mouseinterval(0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mousemask(0, &PRIVATE(data)->initial_mouse_mask);
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user