From 57f28bbb3bb4b756e677cf15973fc9b74475f9f2 Mon Sep 17 00:00:00 2001 From: QC Date: Sun, 20 Jul 2014 17:10:10 +0200 Subject: [PATCH] Close bug #57. * Also accept XK_KP_Enter --- source/dmenu-dialog.c | 2 +- source/textbox.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dmenu-dialog.c b/source/dmenu-dialog.c index 15af8b27..92b7eb09 100644 --- a/source/dmenu-dialog.c +++ b/source/dmenu-dialog.c @@ -85,7 +85,7 @@ SwitcherMode dmenu_switcher_dialog ( char **input ) fputs ( *input, stdout ); } - for ( unsigned int i = 0; i < length ; i++ ) { + for ( unsigned int i = 0; i < length; i++ ) { free ( list[i] ); } diff --git a/source/textbox.c b/source/textbox.c index 7adb18f5..ad8db382 100644 --- a/source/textbox.c +++ b/source/textbox.c @@ -403,7 +403,7 @@ int textbox_keypress ( textbox *tb, XEvent *ev ) textbox_cursor_bkspc ( tb ); return 1; } - else if ( key == XK_Return ) { + else if ( key == XK_Return || key == XK_KP_Enter ) { return -1; } else if ( !iscntrl ( *pad ) ) {