Enable the use of numpad Enter key on menus; from Henrique N. Lengler.

ok beck phessler
This commit is contained in:
okan 2016-08-28 15:23:24 +00:00
parent 22f7f00982
commit 156bfda805

View File

@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
* *
* $OpenBSD: menu.c,v 1.90 2016/04/28 16:28:38 okan Exp $ * $OpenBSD: menu.c,v 1.91 2016/08/28 15:23:24 okan Exp $
*/ */
#include <sys/types.h> #include <sys/types.h>
@ -523,6 +523,7 @@ menu_keycode(XKeyEvent *ev, enum ctltype *ctl, char *chr)
case XK_BackSpace: case XK_BackSpace:
*ctl = CTL_ERASEONE; *ctl = CTL_ERASEONE;
break; break;
case XK_KP_Enter:
case XK_Return: case XK_Return:
*ctl = CTL_RETURN; *ctl = CTL_RETURN;
break; break;