summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2014-02-27 23:04:38 +0000
committerAndy Williams <andy@andywilliams.me>2014-02-27 23:04:38 +0000
commitfcdd86a62a1a1015f7d98a6e6ea28bc363ec07d3 (patch)
tree60375524eea00d8f3eddc92a1a0a714c708af70e
parentef2273a2811d38993146891a73b934578d477ad6 (diff)
respond to keypad decimal
Added the KP_Decimal signal to the list of items that create a '.'. Also remove some loud debug
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index acdd42b..ba47460 100644
--- a/src/main.c
+++ b/src/main.c
@@ -45,6 +45,7 @@ static const struct
45 {"Return", OP_EQU}, 45 {"Return", OP_EQU},
46 {"BackSpace", OP_CLR}, 46 {"BackSpace", OP_CLR},
47 {"period", OP_DEC}, 47 {"period", OP_DEC},
48 {"KP_Decimal", OP_DEC},
48 {"comma", OP_DEC}, 49 {"comma", OP_DEC},
49 NULL 50 NULL
50}; 51};
@@ -241,8 +242,6 @@ _key_down_cb(void *data, int type, void *event)
241 Ecore_Event_Key *ev = event; 242 Ecore_Event_Key *ev = event;
242 int i; 243 int i;
243 244
244 printf("{\"%s\", },\n", ev->key);
245
246 for (i = 0; _keymap[i].keyname; i++) 245 for (i = 0; _keymap[i].keyname; i++)
247 { 246 {
248 if (!strcmp(_keymap[i].keyname, ev->key)) 247 if (!strcmp(_keymap[i].keyname, ev->key))