Elm: Fix ticket 1363 (Cannot change focus with Shift+Tab when using

the wayland engines).

The focus handler which traps key events needs to listen for
ISO_Left_Tab also (which is what xkb reports for Shift+Tab).



SVN revision: 75618
This commit is contained in:
Christopher Michael 2012-08-23 11:27:43 +00:00
parent 45dbb295aa
commit b2456af159
1 changed files with 2 additions and 1 deletions

View File

@ -886,7 +886,8 @@ _elm_win_smart_event(Evas_Object *obj,
return EINA_FALSE;
current_focused = elm_widget_focused_object_get(obj);
if (!strcmp(ev->keyname, "Tab"))
if ((!strcmp(ev->keyname, "Tab")) ||
(!strcmp(ev->keyname, "ISO_Left_Tab")))
{
if (evas_key_modifier_is_set(ev->modifiers, "Shift"))
elm_widget_focus_cycle(obj, ELM_FOCUS_PREVIOUS);