spinner: Toggle entry on Enter and space key.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Tue, 21 Jan 2014 12:59:41 +0000 (21:59 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Tue, 21 Jan 2014 12:59:41 +0000 (21:59 +0900)
src/lib/elm_spinner.c

index be5121e..99311a7 100644 (file)
@@ -478,6 +478,12 @@ _elm_spinner_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
 
              goto success;
           }
+        else if ((!strcmp(ev->key, "Return")) ||
+                 (!strcmp(ev->key, "KP_Enter")) ||
+                 (!strcmp(ev->key, "space")))
+          {
+             _entry_toggle_cb(obj, NULL, NULL, NULL);
+          }
      }
    else if (type == EVAS_CALLBACK_KEY_UP)
      {