From: Enlightenment S. <no-...@en...> - 2009-08-21 00:07:40
|
Log: 'everything' module: added old keybindings again Author: jeffdameth Date: 2009-08-20 17:07:27 -0700 (Thu, 20 Aug 2009) New Revision: 41902 Modified: trunk/e/src/modules/everything/evry.c trunk/e/src/modules/everything/evry_plug_view_list.c Modified: trunk/e/src/modules/everything/evry.c =================================================================== --- trunk/e/src/modules/everything/evry.c 2009-08-20 23:48:01 UTC (rev 41901) +++ trunk/e/src/modules/everything/evry.c 2009-08-21 00:07:27 UTC (rev 41902) @@ -1260,6 +1260,8 @@ else if (_evry_view_key_press(s, ev)) goto end; } + else if (_evry_view_key_press(s, ev)) + goto end; else if (!strcmp(key, "Right")) _evry_browse_item(selector); else if (!strcmp(key, "Left")) Modified: trunk/e/src/modules/everything/evry_plug_view_list.c =================================================================== --- trunk/e/src/modules/everything/evry_plug_view_list.c 2009-08-20 23:48:01 UTC (rev 41901) +++ trunk/e/src/modules/everything/evry_plug_view_list.c 2009-08-21 00:07:27 UTC (rev 41902) @@ -573,12 +573,25 @@ _list_plugin_next(v); else if (!strcmp(key, "Prior")) _list_plugin_prev(v); - else if ((!strcmp(key, "Left") && (ev->modifiers & ECORE_EVENT_MODIFIER_CTRL))) - _list_plugin_prev(v); - else if ((!strcmp(key, "Right") && (ev->modifiers & ECORE_EVENT_MODIFIER_CTRL))) - _list_plugin_prev(v); + else if (ev->modifiers & ECORE_EVENT_MODIFIER_SHIFT) + { + if (!strcmp(key, "Left")) + _list_plugin_prev(v); + else if (!strcmp(key, "Right")) + _list_plugin_next(v); + else return 0; + + return 1; + } else if (ev->modifiers & ECORE_EVENT_MODIFIER_CTRL) - _list_plugin_next_by_name(v, key); + { + if (!strcmp(key, "Left")) + _list_plugin_prev(v); + else if (!strcmp(key, "Right")) + _list_plugin_next(v); + else if (ev->compose) + _list_plugin_next_by_name(v, key); + } else return 0; return 1; |