*cy += (ch / 2);
}
-static void
-_curs_back(Evas_Textblock_Cursor *c, Evas_Object *o __UNUSED__,
- Entry *en __UNUSED__)
-{
- evas_textblock_cursor_char_prev(c);
-}
-
-static void
-_curs_next(Evas_Textblock_Cursor *c, Evas_Object *o __UNUSED__,
- Entry *en __UNUSED__)
-{
- evas_textblock_cursor_char_next(c);
-}
-
static int
_curs_line_last_get(Evas_Textblock_Cursor *c __UNUSED__, Evas_Object *o, Entry *en __UNUSED__)
{
if (shift) _sel_start(en->cursor, rp->object, en);
else _sel_clear(en->cursor, rp->object, en);
}
- _curs_back(en->cursor, rp->object, en);
+ evas_textblock_cursor_char_prev(en->cursor);
+ /* If control is pressed, go to the start of the word */
+ if (control) evas_textblock_cursor_word_start(en->cursor);
if (en->select_allow)
{
if (shift) _sel_extend(en->cursor, rp->object, en);
if (shift) _sel_start(en->cursor, rp->object, en);
else _sel_clear(en->cursor, rp->object, en);
}
- _curs_next(en->cursor, rp->object, en);
+ /* If control is pressed, go to the start of the word */
+ if (control) evas_textblock_cursor_word_end(en->cursor);
+ evas_textblock_cursor_char_next(en->cursor);
if (en->select_allow)
{
if (shift) _sel_extend(en->cursor, rp->object, en);