aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-31 15:14:09 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-31 15:16:41 +0900
commit59e8bc5a35026919c090e1b05f03fca1a56ba184 (patch)
tree1c3c8b348375fdb998bc7c065af4f9838e8db9b8 /legacy/elementary/src/lib/elm_win.c
parent[access] use proper name _elm_access_info_get(); not _elm_access_object_get()... (diff)
downloadefl-59e8bc5a35026919c090e1b05f03fca1a56ba184.tar.gz
Fix elm to use key not keyname (so xmodmap works)
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 4636b17556..dae160730e 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -1165,8 +1165,8 @@ _elm_win_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
if (type != EVAS_CALLBACK_KEY_DOWN)
return;
- if ((!strcmp(ev->keyname, "Tab")) ||
- (!strcmp(ev->keyname, "ISO_Left_Tab")))
+ if ((!strcmp(ev->key, "Tab")) ||
+ (!strcmp(ev->key, "ISO_Left_Tab")))
{
if (evas_key_modifier_is_set(ev->modifiers, "Control") ||
evas_key_modifier_is_set(ev->modifiers, "Alt"))
@@ -1178,29 +1178,29 @@ _elm_win_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
goto success;
}
- else if ((!strcmp(ev->keyname, "Left")) ||
- ((!strcmp(ev->keyname, "KP_Left")) && (!ev->string)))
+ else if ((!strcmp(ev->key, "Left")) ||
+ ((!strcmp(ev->key, "KP_Left")) && (!ev->string)))
{
elm_widget_focus_cycle(obj, ELM_FOCUS_LEFT);
goto success;
}
- else if ((!strcmp(ev->keyname, "Right")) ||
- ((!strcmp(ev->keyname, "KP_Right")) && (!ev->string)))
+ else if ((!strcmp(ev->key, "Right")) ||
+ ((!strcmp(ev->key, "KP_Right")) && (!ev->string)))
{
elm_widget_focus_cycle(obj, ELM_FOCUS_RIGHT);
goto success;
}
- else if ((!strcmp(ev->keyname, "Up")) ||
- ((!strcmp(ev->keyname, "KP_Up")) && (!ev->string)))
+ else if ((!strcmp(ev->key, "Up")) ||
+ ((!strcmp(ev->key, "KP_Up")) && (!ev->string)))
{
elm_widget_focus_cycle(obj, ELM_FOCUS_UP);
goto success;
}
- else if ((!strcmp(ev->keyname, "Down")) ||
- ((!strcmp(ev->keyname, "KP_Down")) && (!ev->string)))
+ else if ((!strcmp(ev->key, "Down")) ||
+ ((!strcmp(ev->key, "KP_Down")) && (!ev->string)))
{
elm_widget_focus_cycle(obj, ELM_FOCUS_DOWN);
@@ -2432,7 +2432,7 @@ _debug_key_down(void *data __UNUSED__,
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
return;
- if ((strcmp(ev->keyname, "F12")) ||
+ if ((strcmp(ev->key, "F12")) ||
(!evas_key_modifier_is_set(ev->modifiers, "Control")))
return;