editor: trigger saves if selection cut or pasted

This commit is contained in:
Andy Williams 2015-05-30 10:13:11 +01:00
parent 9567122d09
commit 05f6cd3eac
1 changed files with 10 additions and 2 deletions

View File

@ -1124,11 +1124,19 @@ _elm_code_widget_control_key_down_cb(Elm_Code_Widget *widget, const char *key)
return;
if (!strcmp("c", key))
elm_code_widget_selection_copy(widget);
else if (!strcmp("v", key))
{
elm_code_widget_selection_copy(widget);
return;
}
if (!strcmp("v", key))
elm_code_widget_selection_paste(widget);
else if (!strcmp("x", key))
elm_code_widget_selection_cut(widget);
eo_do(widget,
// TODO construct and pass a change object
eo_event_callback_call(ELM_CODE_WIDGET_EVENT_CHANGED_USER, NULL));
}
static void