don't let you use left to go "up to parent" on menus which don't have any parent
This commit is contained in:
parent
6ca53a625d
commit
e8ce4dbb8f
1 changed files with 2 additions and 1 deletions
|
@ -1682,6 +1682,7 @@ static gboolean event_handle_menu_keyboard(XEvent *ev)
|
||||||
|
|
||||||
else if (keycode == ob_keycode(OB_KEY_LEFT)) {
|
else if (keycode == ob_keycode(OB_KEY_LEFT)) {
|
||||||
/* Left goes to the parent menu */
|
/* Left goes to the parent menu */
|
||||||
|
if (frame->parent)
|
||||||
menu_frame_select(frame, NULL, TRUE);
|
menu_frame_select(frame, NULL, TRUE);
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue