editor: shift+del
This commit is contained in:
parent
3c4d9529b9
commit
3848c35c72
|
@ -911,6 +911,10 @@ _smart_cb_key_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED,
|
||||||
{
|
{
|
||||||
edi_mainview_goto_popup_show();
|
edi_mainview_goto_popup_show();
|
||||||
}
|
}
|
||||||
|
else if (!strcmp(ev->key, "Del"))
|
||||||
|
{
|
||||||
|
edi_mainview_cut();
|
||||||
|
}
|
||||||
else if (!strcmp(ev->key, "Home"))
|
else if (!strcmp(ev->key, "Home"))
|
||||||
{
|
{
|
||||||
edi_mainview_goto_start();
|
edi_mainview_goto_start();
|
||||||
|
|
|
@ -970,7 +970,6 @@ edi_mainview_panel_goto_position(Edi_Mainview_Panel *panel, unsigned int row, un
|
||||||
elm_object_focus_set(editor->entry, EINA_TRUE);
|
elm_object_focus_set(editor->entry, EINA_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
edi_mainview_panel_goto_end(Edi_Mainview_Panel *panel)
|
edi_mainview_panel_goto_end(Edi_Mainview_Panel *panel)
|
||||||
{
|
{
|
||||||
|
@ -990,13 +989,13 @@ edi_mainview_panel_goto_end(Edi_Mainview_Panel *panel)
|
||||||
code = elm_code_widget_code_get(editor->entry);
|
code = elm_code_widget_code_get(editor->entry);
|
||||||
if (!code) return;
|
if (!code) return;
|
||||||
|
|
||||||
|
tabstop = elm_code_widget_tabstop_get(editor->entry);
|
||||||
|
|
||||||
row = elm_code_file_lines_get(code->file);
|
row = elm_code_file_lines_get(code->file);
|
||||||
if (row <= 0) return;
|
if (row <= 0) return;
|
||||||
|
|
||||||
line = elm_code_file_line_get(code->file, row);
|
line = elm_code_file_line_get(code->file, row);
|
||||||
if (!line) return;
|
if (!line || !line->content) return;
|
||||||
|
|
||||||
tabstop = elm_code_widget_tabstop_get(editor->entry);
|
|
||||||
|
|
||||||
for (ch = line->content; *ch; ch++)
|
for (ch = line->content; *ch; ch++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue