From ee85aeb4a0d4160cd3a090526a9b6b847cadc82c Mon Sep 17 00:00:00 2001 From: portix Date: Sun, 17 Mar 2013 18:54:26 +0100 Subject: Check for numpad return --- src/dwb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/dwb.h') diff --git a/src/dwb.h b/src/dwb.h index da56847d..bee2cf9d 100644 --- a/src/dwb.h +++ b/src/dwb.h @@ -132,6 +132,7 @@ #define ALPHA(X) ((X->keyval >= GDK_KEY_A && X->keyval <= GDK_KEY_Z) || (X->keyval >= GDK_KEY_a && X->keyval <= GDK_KEY_z) || X->keyval == GDK_KEY_space) #define DIGIT(X) (X->keyval >= GDK_KEY_0 && X->keyval <= GDK_KEY_9) +#define IS_RETURN_KEY(X) ((X)->keyval == GDK_KEY_Return || (X)->keyval == GDK_KEY_KP_Enter) #define DWB_TAB_KEY(e) (e->keyval == GDK_KEY_Tab || e->keyval == GDK_KEY_ISO_Left_Tab) #define DWB_COMPLETE_KEY(e) (DWB_TAB_KEY(e) || e->keyval == GDK_KEY_Down || e->keyval == GDK_KEY_Up) -- cgit v1.2.3