}
/* 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;
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 */
}
/* 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;
}
ret = TRUE;
}
- else if (sym == XK_Return) {
+ else if (sym == XK_Return || sym == XK_KP_Enter) {
frame->press_doexec = TRUE;
ret = TRUE;
}
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 ||
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;