make keypad enter do the same thing as return
Dana Jansens danakj@orodu.net
6 files changed,
6 insertions(+),
6 deletions(-)
M
openbox/actions/cyclewindows.c
→
openbox/actions/cyclewindows.c
@@ -195,7 +195,7 @@ return FALSE;
} /* There were no modifiers and they pressed enter */ - else if (sym == XK_Return && !initial_state) { + else if ((sym == XK_Return || sym == XK_KP_Enter) && !initial_state) { o->cancel = FALSE; o->state = e->xkey.state; return FALSE;
M
openbox/actions/desktop.c
→
openbox/actions/desktop.c
@@ -327,7 +327,7 @@ if (sym == XK_Escape)
return FALSE; /* There were no modifiers and they pressed enter */ - else if (sym == XK_Return && !initial_state) + else if ((sym == XK_Return || sym == XK_KP_Enter) && !initial_state) return FALSE; } /* They released the modifiers */
M
openbox/actions/directionalwindows.c
→
openbox/actions/directionalwindows.c
@@ -278,7 +278,7 @@ return FALSE;
} /* There were no modifiers and they pressed enter */ - else if (sym == XK_Return && !initial_state) { + else if ((sym == XK_Return || sym == XK_KP_Enter) && !initial_state) { end_cycle(FALSE, e->xkey.state, options); return FALSE; }
M
openbox/event.c
→
openbox/event.c
@@ -1882,7 +1882,7 @@ menu_frame_select_last(frame);
ret = TRUE; } - else if (sym == XK_Return) { + else if (sym == XK_Return || sym == XK_KP_Enter) { frame->press_doexec = TRUE; ret = TRUE; }
M
openbox/moveresize.c
→
openbox/moveresize.c
@@ -916,7 +916,7 @@
if (sym == XK_Escape) { moveresize_end(TRUE); used = TRUE; - } else if (sym == XK_Return) { + } else if (sym == XK_Return || sym == XK_KP_Enter) { moveresize_end(FALSE); used = TRUE; } else if (sym == XK_Right || sym == XK_Left ||
M
openbox/prompt.c
→
openbox/prompt.c
@@ -540,7 +540,7 @@ sym = obt_keyboard_keypress_to_keysym(e);
if (sym == XK_Escape) prompt_cancel(self); - else if (sym == XK_Return || sym == XK_space) + else if (sym == XK_Return || sym == XK_KP_Enter || sym == XK_space) prompt_run_callback(self, self->focus->result); else if (sym == XK_Tab || sym == XK_Left || sym == XK_Right) { gint i;