fix: adjust mouse event mask and click interval for reliable detection
Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
4
tui.c
4
tui.c
@@ -446,8 +446,8 @@ void tui_init(Engine *engine) {
|
|||||||
curs_set(0); // Hide cursor
|
curs_set(0); // Hide cursor
|
||||||
|
|
||||||
// Enable mouse events
|
// Enable mouse events
|
||||||
mousemask(ALL_MOUSE_EVENTS | REPORT_MOUSE_POSITION, NULL);
|
mousemask(BUTTON1_CLICKED | BUTTON3_CLICKED | BUTTON2_CLICKED | BUTTON1_DOUBLE_CLICKED, NULL);
|
||||||
mouseinterval(0); // No click delay
|
mouseinterval(10); // 10ms click interval
|
||||||
|
|
||||||
// Initialize colors
|
// Initialize colors
|
||||||
if (has_colors()) {
|
if (has_colors()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user