enventor - add short-cut key for dummy swallow

This commit is contained in:
ChunEon Park 2013-07-21 05:34:30 +09:00
parent 4e6b1e0585
commit e5b7ff61be
2 changed files with 11 additions and 0 deletions

1
README
View File

@ -15,6 +15,7 @@ Ctrl+H = Part Highlighting
Ctrl+, = Full Edit View
Ctrl+. = Full Edje View
Ctrl+/ = Split View
Ctrl+W = Show/Hide Dummy Swallow Object
Command Line Usage:

View File

@ -210,11 +210,21 @@ main_key_down_cb(void *data, int type EINA_UNUSED, void *ev)
part_highlight_toggle(ad);
return ECORE_CALLBACK_DONE;
}
//Part Highlight
if (!strcmp(event->keyname, "w") || !strcmp(event->keyname, "W"))
{
option_dummy_swallow_set(ad->od,
!option_dummy_swallow_get(ad->od));
view_dummy_toggle(ad->vd);
return ECORE_CALLBACK_DONE;
}
//Full Edit View
if (!strcmp(event->keyname, "comma"))
{
panes_full_view_left(ad->panes);
return ECORE_CALLBACK_DONE;
}
//Full Edje View
if (!strcmp(event->keyname, "period"))
{
panes_full_view_right(ad->panes);