Titanium studio disable enter key in android keybord -
Titanium studio disable enter key in android keybord -
i seem stuck on problem can't seem find reply for. have textarea in titanium studio can come in name , if click button safes database want disable come in key in android keyboard or alter action similar space button wont mess when inserting database.
does know way prepare this?
below code :
var textarea = ti.ui.createtextarea({ hinttext: 'enter name', left:10, width:200, height:40, borderstyle:titanium.ui.input_borderstyle_rounded, });
you need add keyboard properties textarea.
var textarea = ti.ui.createtextarea({ hinttext: 'enter name', left:10, width:200, height:40, borderstyle:titanium.ui.input_borderstyle_rounded, keyboardtype: titanium.ui.keyboard_default, returnkeytype: ti.ui.returnkey_go });
you can set keyboardtype , returnkeytype values per needs.
check these 2 properties :
keyboardtype : keyboard type display when text area focused. http://docs.appcelerator.com/titanium/3.0/#!/api/titanium.ui.textarea-property-keyboardtype
returnkeytype : specifies text display on keyboard homecoming key when text area focused. http://docs.appcelerator.com/titanium/3.0/#!/api/titanium.ui.textarea-property-returnkeytype
hope helps.
android titanium
Comments
Post a Comment