Close bug #57.

* Also accept XK_KP_Enter
This commit is contained in:
QC 2014-07-20 17:10:10 +02:00
parent 0f279b2995
commit 57f28bbb3b
2 changed files with 2 additions and 2 deletions

View File

@ -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] );
}

View File

@ -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 ) ) {