summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-21 19:57:22 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-21 19:58:10 +0900
commitb25e2bf0a67d47ce9ec0afa46d23569f49e0b74f (patch)
tree4cb9aa383b33a4f510c2c0b341b1bfc51ddd0625
parentc814ac54e3a80d05be722a3dd2720ddd6362d883 (diff)
toolbar: Do not check ev->string for Return key and react on space key.
space key works as same as Return key.
-rw-r--r--src/lib/elm_toolbar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index 4ca9a3786..4cd9e6efb 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -666,7 +666,8 @@ _elm_toolbar_smart_event(Eo *obj, void *_pd, va_list *list)
666 if (!sd->items) return; 666 if (!sd->items) return;
667 667
668 if ((!strcmp(ev->key, "Return")) || 668 if ((!strcmp(ev->key, "Return")) ||
669 ((!strcmp(ev->key, "KP_Enter")) && !ev->string)) 669 (!strcmp(ev->key, "KP_Enter")) ||
670 (!strcmp(ev->key, "space")))
670 { 671 {
671 if (sd->highlighted_item) 672 if (sd->highlighted_item)
672 _item_select(sd->highlighted_item); 673 _item_select(sd->highlighted_item);