all repos — openbox @ e7d5ef84180ea9dc51427ba5f3524f67b6506a67

openbox fork - make it a bit more like ryudo

make keypad enter do the same thing as return
Dana Jansens danakj@orodu.net
commit

e7d5ef84180ea9dc51427ba5f3524f67b6506a67

parent

11bb31d3bc712aa31d73065383d32f1510393fe2

M openbox/actions/cyclewindows.copenbox/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.copenbox/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.copenbox/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.copenbox/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.copenbox/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.copenbox/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;