Edje entry: Implement Ctrl+Backspace - delete to start of word.

SVN revision: 66203
This commit is contained in:
Tom Hacohen 2011-12-14 16:27:40 +00:00
parent bdab64acae
commit d5a3ab4f81
1 changed files with 9 additions and 1 deletions

View File

@ -1192,9 +1192,17 @@ _edje_key_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v
}
else if (!strcmp(ev->key, "BackSpace"))
{
if (control)
if (control && !en->have_selection)
{
// del to start of previous word
_sel_start(en->cursor, rp->object, en);
evas_textblock_cursor_char_prev(en->cursor);
evas_textblock_cursor_word_start(en->cursor);
_sel_extend(en->cursor, rp->object, en);
_range_del_emit(ed, en->cursor, rp->object, en);
}
else if ((alt) && (shift))
{