mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Change menu key bindings to Up and Down and also close it on any mouse
press if opened by key.
This commit is contained in:
5
menu.c
5
menu.c
@ -185,8 +185,11 @@ menu_key_cb(struct client *c, struct key_event *event)
|
||||
const char *name;
|
||||
|
||||
if (KEYC_IS_MOUSE(event->key)) {
|
||||
if (md->flags & MENU_NOMOUSE)
|
||||
if (md->flags & MENU_NOMOUSE) {
|
||||
if (MOUSE_BUTTONS(m->b) != 0)
|
||||
return (1);
|
||||
return (0);
|
||||
}
|
||||
if (m->x < md->px ||
|
||||
m->x > md->px + 4 + menu->width ||
|
||||
m->y < md->py + 1 ||
|
||||
|
Reference in New Issue
Block a user