diff options
author | portix <none@none> | 2013-03-17 18:54:26 +0100 |
---|---|---|
committer | portix <none@none> | 2013-03-17 18:54:26 +0100 |
commit | ee85aeb4a0d4160cd3a090526a9b6b847cadc82c (patch) | |
tree | bed8331f96f7b0ac1c9e11822df703ba0ee4f052 /src/dwb.h | |
parent | 2980a48c129cf627e69a556ec8ebece97dc45f37 (diff) | |
download | dwb-ee85aeb4a0d4160cd3a090526a9b6b847cadc82c.zip |
Check for numpad return
Diffstat (limited to 'src/dwb.h')
-rw-r--r-- | src/dwb.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |