hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=4d6e98d0f07a6f317e958d2dbd3e9cfad0dd58af
commit 4d6e98d0f07a6f317e958d2dbd3e9cfad0dd58af Author: Hermet Park <[email protected]> Date: Sat Jul 2 13:32:34 2016 +0900 reorganize shortcut keys. -- auto indentation. -- auto completion. ++ wireframes (ctrl + w). --- README | 5 ++--- data/help/SHORTCUT | 5 ++--- src/bin/main.c | 38 +++----------------------------------- 3 files changed, 7 insertions(+), 41 deletions(-) diff --git a/README b/README index cd545c3..22a8103 100644 --- a/README +++ b/README @@ -43,11 +43,10 @@ F11 - Toggle File Tab F12 - Settings Ctrl+S - Quick Save + Update Live View -Ctrl+I - Toggle Auto Indentation -Ctrl+O - Toggle Auto Completion -Ctrl+W - Toggle Dummy Parts +Ctrl+U - Toggle Dummy Parts Ctrl+H - Toggle Part Highlighting Ctrl+M - Toggle Mirror Mode +Ctrl+W - Toggle Wireframes Ctrl+T - Insert Defaut Template Code Ctrl+Mouse Wheel Up - View Zoom In / Font Size Up Ctrl+Mouse Wheel Down - View Zoom Out / Font Size Down diff --git a/data/help/SHORTCUT b/data/help/SHORTCUT index 089ff56..1ddd997 100644 --- a/data/help/SHORTCUT +++ b/data/help/SHORTCUT @@ -12,11 +12,10 @@ F12 - Settings</br> </br> Ctrl+S - Quick Save + Update Live View</br> - Ctrl+I - Toggle Auto Indentation</br> - Ctrl+O - Toggle Auto Completion</br> - Ctrl+W - Toggle Dummy Parts</br> + Ctrl+U - Toggle Dummy Parts</br> Ctrl+H - Toggle Part Highlighting</br> Ctrl+M - Toggle Mirror Mode</br> + Ctrl+W - Toggle Wireframes</br> Ctrl+T - Insert Defaut Template Code</br> Ctrl+Mouse Wheel Up - View Zoom In / Font Size Up</br> Ctrl+Mouse Wheel Down - View Zoom Out / Font Size Down</br> diff --git a/src/bin/main.c b/src/bin/main.c index f0afe5e..509bfde 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -15,26 +15,6 @@ typedef struct app_s int main(int argc, char **argv); -void -auto_comp_toggle(void) -{ - Eina_Bool toggle = !config_auto_complete_get(); - enventor_object_auto_complete_set(base_enventor_get(), toggle); - if (toggle) stats_info_msg_update(_("Auto Completion Enabled.")); - else stats_info_msg_update(_("Auto Completion Disabled.")); - config_auto_complete_set(toggle); -} - -static void -auto_indent_toggle(void) -{ - Eina_Bool toggle = !config_auto_indent_get(); - enventor_object_auto_indent_set(base_enventor_get(), toggle); - if (toggle) stats_info_msg_update(_("Auto Indentation Enabled.")); - else stats_info_msg_update(_("Auto Indentation Disabled.")); - config_auto_indent_set(toggle); -} - static void tools_update(void) { @@ -675,13 +655,13 @@ ctrl_func(Evas_Event_Key_Down *event) return EINA_TRUE; } //Swallow Dummy Object - if (!strcmp(event->key, "w") || !strcmp(event->key, "W")) + if (!strcmp(event->key, "u") || !strcmp(event->key, "U")) { tools_dummy_update(EINA_TRUE); return EINA_TRUE; } - //Parts Outline - if (!strcmp(event->key, "p") || !strcmp(event->key, "P")) + //Wireframes + if (!strcmp(event->key, "w") || !strcmp(event->key, "W")) { tools_outline_update(EINA_TRUE); return EINA_TRUE; @@ -698,18 +678,6 @@ ctrl_func(Evas_Event_Key_Down *event) tools_template_insert(); return EINA_TRUE; } - //Auto Indentation - if (!strcmp(event->key, "i") || !strcmp(event->key, "I")) - { - auto_indent_toggle(); - return EINA_TRUE; - } - //Auto Completion - if (!strcmp(event->key, "o") || !strcmp(event->key, "O")) - { - auto_comp_toggle(); - return EINA_TRUE; - } if (!strcmp(event->key, "space")) { --
