X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fevent.c;h=a4943f46fa0048a20af2271bddaa0e362cce6241;hb=08269cefbce2fe600269c989f9a6a22a98641ba1;hp=f813d3f5cb2a45c9ad2672690b17698cf32a5520;hpb=62f8a5c49b852047bf6cc199d2d0c9add41d35a9;p=chaz%2Fopenbox diff --git a/openbox/event.c b/openbox/event.c index f813d3f5..a4943f46 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1782,6 +1782,9 @@ static gboolean event_handle_menu_input(XEvent *ev) frame->press_keycode = ev->xkey.keycode; frame->press_doexec = FALSE; + unikey = obt_keyboard_keypress_to_unichar(menu_frame_ic(frame), + &ev->xkey); + if (ob_keycode_match(ev->xkey.keycode, OB_KEY_ESCAPE)) { menu_frame_hide_all(); ret = TRUE; @@ -1831,7 +1834,7 @@ static gboolean event_handle_menu_input(XEvent *ev) } /* keyboard accelerator shortcuts. (if it was a valid key) */ - else if ((unikey = obt_keyboard_keypress_to_unichar(&ev->xkey))) { + else if (unikey) { GList *start; GList *it; ObMenuEntryFrame *found = NULL;