emoticons on native.newTextField

Is there anyway to disable the use of emoticons on native.newTextField?

in iOS you would set the keyboard to ascii only (see below) but that options seems to be missing from the inputType field only “default”,“number”,“decimal”,“phone”,“url” and “email” seem to be available.

typedef enum {
UIKeyboardTypeDefault,
UIKeyboardTypeASCIICapable, < UIKeyboardTypeNumbersAndPunctuation,
UIKeyboardTypeURL,
UIKeyboardTypeNumberPad,
UIKeyboardTypePhonePad,
UIKeyboardTypeNamePhonePad,
UIKeyboardTypeEmailAddress,
UIKeyboardTypeDecimalPad,
UIKeyboardTypeTwitter,
UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable
} UIKeyboardType;

If it can’t be disabled what’s the best way to not let the user enter them?

It is causing havoc with my app in testing as my testers seem to want to enter them just to mess with me!! [import]uid: 8697 topic_id: 35150 reply_id: 335150[/import]

Do you know what is being entered text wise? If it’s a UTF-8 type character or some string that can be filtered, you could put in code in the editing phase that force removes them. I doubt you could stop :slight_smile: type entries since those are still ASCII characters.

If you would like to add the additional keyboard types as a feature request you can go here:

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback

[import]uid: 199310 topic_id: 35150 reply_id: 139797[/import]

If you have the emoji keyboard selected you can type in all sorts of crazy characters, I guess I could lock input to characters between 30-127 but that’s just messy.

The correct keyboard up would be the best an most elegant solution.

Not sure why the other keyboard types are not included, having written in objective c and native iOS I know that it is a simple number change.

I have an app for a client that is finished except for this feature and they don’t like the limiting of the characters, they would prefer the correct keyboard, and THEY know its possible. [import]uid: 8697 topic_id: 35150 reply_id: 139799[/import]

Do you know what is being entered text wise? If it’s a UTF-8 type character or some string that can be filtered, you could put in code in the editing phase that force removes them. I doubt you could stop :slight_smile: type entries since those are still ASCII characters.

If you would like to add the additional keyboard types as a feature request you can go here:

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback

[import]uid: 199310 topic_id: 35150 reply_id: 139797[/import]

If you have the emoji keyboard selected you can type in all sorts of crazy characters, I guess I could lock input to characters between 30-127 but that’s just messy.

The correct keyboard up would be the best an most elegant solution.

Not sure why the other keyboard types are not included, having written in objective c and native iOS I know that it is a simple number change.

I have an app for a client that is finished except for this feature and they don’t like the limiting of the characters, they would prefer the correct keyboard, and THEY know its possible. [import]uid: 8697 topic_id: 35150 reply_id: 139799[/import]

I experimented with UIKeyboardTypeASCIICapable a little and while it does prevent the user from switching to the Emoji keyboard it doesn’t prevent them from entering regular French, Japanese, Arabic or other national language characters nor does it prevent Emojis from being pasted into the field so it wont prevent the entry of “crazy characters”. At best it’s a hint to the user that Emojis aren’t appreciated.

I’ll discuss internally and see if this is something we want to add (just suppressing the Emoji keyboard). [import]uid: 199237 topic_id: 35150 reply_id: 141090[/import]

That would be ok and a perfect for what I want.

Thanks, I look forward to it being implemented ASAP. :stuck_out_tongue: [import]uid: 8697 topic_id: 35150 reply_id: 141136[/import]

I experimented with UIKeyboardTypeASCIICapable a little and while it does prevent the user from switching to the Emoji keyboard it doesn’t prevent them from entering regular French, Japanese, Arabic or other national language characters nor does it prevent Emojis from being pasted into the field so it wont prevent the entry of “crazy characters”. At best it’s a hint to the user that Emojis aren’t appreciated.

I’ll discuss internally and see if this is something we want to add (just suppressing the Emoji keyboard). [import]uid: 199237 topic_id: 35150 reply_id: 141090[/import]

That would be ok and a perfect for what I want.

Thanks, I look forward to it being implemented ASAP. :stuck_out_tongue: [import]uid: 8697 topic_id: 35150 reply_id: 141136[/import]