Languages

Menu
Sites
Language
Disabling Keypad keys

Hi,

How would i disable specific buttons in the keypad that appears on tapping an EditField.

This is the code to dispaly the EditField

Construct(Rectangle(85, 100, 60, 60), EDIT_FIELD_STYLE_PHONE_NUMBER_SMALL, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_NONE);

From code it is seen that i have used Overlay style of Keypad.

 

Thanks in advance.

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

2 Replies
Siddharth Singh
I dont think u can do that.......but u can create ur own keypad with the keys u want....should not take munch time.
you can check what the user click and then remove last letter if it is disabled It may involve lots of hard code in OnTextValueChanged - Save last string before the next key press -Check if the new String inside OnTextValueChanged has disabled key - If the new string has disabled key then remove it by setting the editfield to previous saved string - If not, save the new string to check it on next key press Or you can use IKeyEventListener to listen to every key and setting the editfield with similar idea to above This is way around if you could not find easier answer ..