Fix #1765: detect and ignore false mouse click

This commit is contained in:
Arun Prakash Jana 2024-02-03 21:42:28 +05:30
parent 0738f39cf0
commit 94aeaccdbd
No known key found for this signature in database
GPG Key ID: 4A865183AF6C5631
1 changed files with 9 additions and 2 deletions

View File

@ -3436,7 +3436,14 @@ static int filterentries(char *path, char *lastname)
continue;
#ifndef NOMOUSE
case KEY_MOUSE:
{
MEVENT event = {0};
getmouse(&event);
if (event.bstate == 0)
continue;
ungetmouse(&event);
goto end;
}
#endif
case ESC:
if (handle_alt_key(ch) != ERR) {