reorganize shortcut keys.

-- auto indentation.
-- auto completion.
++ wireframes (ctrl + w).
This commit is contained in:
Hermet Park 2016-07-02 13:32:34 +09:00
parent 896da7f386
commit 4d6e98d0f0
3 changed files with 7 additions and 41 deletions

5
README
View File

@ -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

View File

@ -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>

View File

@ -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"))
{