Fix delete key function and remove stray 'BackSpace (' handling in code.
Signed-off-by: Sanjeev BA <as2902.b@samsung.com> SVN revision: 68763
This commit is contained in:
parent
bbcd343b89
commit
45afba43d2
|
@ -971,7 +971,7 @@ _evas_mbe_key_up_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__,
|
|||
{
|
||||
if (wd->current &&
|
||||
((strcmp(ev->keyname, "BackSpace") == 0) ||
|
||||
(strcmp(ev->keyname, "BackSpace (") == 0)))
|
||||
(strcmp(ev->keyname, "Delete") == 0)))
|
||||
{
|
||||
item = eina_list_data_get(wd->current);
|
||||
if (item)
|
||||
|
@ -983,7 +983,7 @@ _evas_mbe_key_up_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__,
|
|||
}
|
||||
else if (((!wd->current && (wd->n_str == 0) &&
|
||||
(strcmp(ev->keyname, "BackSpace") == 0)) ||
|
||||
(strcmp(ev->keyname, "BackSpace (") == 0)))
|
||||
(strcmp(ev->keyname, "Delete") == 0)))
|
||||
{
|
||||
item = eina_list_data_get(eina_list_last(wd->items));
|
||||
if (item)
|
||||
|
@ -1002,7 +1002,7 @@ _entry_key_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__,
|
|||
|
||||
if (!wd) return;
|
||||
|
||||
if ((wd->n_str == 1) && (strcmp(ev->keyname, "BackSpace") == 0 || (strcmp(ev->keyname, "BackSpace (") == 0 )))
|
||||
if ((wd->n_str == 1) && (strcmp(ev->keyname, "BackSpace") == 0 || (strcmp(ev->keyname, "Delete") == 0 )))
|
||||
wd->last_btn_select = EINA_FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
* 1. docs are lacking.
|
||||
* 2. name sucks
|
||||
* 3. should use the elm_object_part_text_set to set guide text.
|
||||
* 5. bugs: offset bug with the "tap to add recipient" + delete doesn't delete items but backspace does. */
|
||||
* 5. bugs: offset bug with the "tap to add recipient" */
|
||||
|
||||
/**
|
||||
* @addtogroup Multibuttonentry
|
||||
|
|
Loading…
Reference in New Issue