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:
Sanjeev BA 2012-03-06 02:51:54 +00:00 committed by Sanjeev BA
parent bbcd343b89
commit 45afba43d2
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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