aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorokan2016-08-28 15:23:24 +0000
committerokan2016-08-28 15:23:24 +0000
commit42cb375bf43aef992c3e9c192e2ef9b6d8743973 (patch)
treecc80435e1208d09404817937f86005674520df37 /menu.c
parent50a88d0c6a81f77a86dd19bd0d68032f7f7a76fd (diff)
downloadcwm-42cb375bf43aef992c3e9c192e2ef9b6d8743973.tar.gz
Enable the use of numpad Enter key on menus; from Henrique N. Lengler.
ok beck phessler
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 4a63a3c..1b0ce1f 100644
--- a/menu.c
+++ b/menu.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* 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>
@@ -523,6 +523,7 @@ menu_keycode(XKeyEvent *ev, enum ctltype *ctl, char *chr)
case XK_BackSpace:
*ctl = CTL_ERASEONE;
break;
+ case XK_KP_Enter:
case XK_Return:
*ctl = CTL_RETURN;
break;