summaryrefslogtreecommitdiff
path: root/src/dwb.h
diff options
context:
space:
mode:
authorportix <none@none>2013-03-17 18:54:26 +0100
committerportix <none@none>2013-03-17 18:54:26 +0100
commitee85aeb4a0d4160cd3a090526a9b6b847cadc82c (patch)
treebed8331f96f7b0ac1c9e11822df703ba0ee4f052 /src/dwb.h
parent2980a48c129cf627e69a556ec8ebece97dc45f37 (diff)
downloaddwb-ee85aeb4a0d4160cd3a090526a9b6b847cadc82c.zip
Check for numpad return
Diffstat (limited to 'src/dwb.h')
-rw-r--r--src/dwb.h1
1 files changed, 1 insertions, 0 deletions
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)