Hide keyboard number pad - best way
Hi.
I'm wondering what the best way to hide a number pad is. Is it to have a big button in the background or what's the "standard way"? I've tried this:
keyboardType: Ti.UI.KEYBOARD_NUMBER_PAD,
returnKeyType:Titanium.UI.RETURNKEY_DEFAULT,
enableReturnKey: true
But then the event doesn't respond when I click on the return key. Am I missing something?
2 Answers
-
Kosso:
Thanks for your answer but I solved by a different method.
When the user clicks on the view the keyboard disappears. Like this:
win.addEventListener("click", function() { valueTextField.blur(); }); wrapper.addEventListener("click", function() { valueTextField.blur(); });
-
try removing the returnKeyType and enableReturnKey options.
Then your 'return' event should fire. Then when you catch that, call yourtextfield_var_name.blur()