Fix: Mouse hover+Enter key selects inactive menu items (#1159)
This commit is contained in:
parent
c82165cb07
commit
80c94ebfdf
@ -842,7 +842,7 @@ int menuwindow::handle_part1(int e) {
|
||||
if (pp.current_item && (!pp.menubar || pp.menu_number > 0) &&
|
||||
pp.current_item->activevisible() && pp.current_item->submenu() && !pp.current_item->callback_)
|
||||
goto RIGHT;
|
||||
pp.state = DONE_STATE;
|
||||
if (pp.current_item && pp.current_item->activevisible()) pp.state = DONE_STATE;
|
||||
return 1;
|
||||
case FL_Escape:
|
||||
setitem(0, -1, 0);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user