Detect numeric keyboard back button long press - ios

i''m implementing an OTP screen to enter a 6-digit passcode into 6 consecutive UITextFields, if the user enters (for ex.) 4 digits i would let them to clear their input but holding down the backspace key to clear text fields from the 4th one all the way to the first one, exactly like What's app does with their OTP screen, the problem is that how can I detect the long press gesture of the backspace button in the numeric keyboard ?

Related

Can we show only suggestion OTP above keyboard and hide keyboard section in Swift/IOS

We need to achieve functionality where user can not type OTP manually , so we don't want to give user an option to enter OTP , rather we want to use one tap feature of keyboard from IOS 12 , where user can tap on suggestion displayed over keyboard and OTP filled automatically . So can we hide keyboard but suggestion OTP still being displayed?

Decimal pad UITextfield and keyboard extensions on iOS 11

I'm using a UITextField with its input type set to Decimal Pad. If the latest keyboard that had been used was the Bitmoji keyboard and the user taps on the the text-field then the Bitmoji keyboard appears and it doesn't allow the user to change it back to the decimal pad (from the small globe icon on the bottom left of the keyboard).
If the user taps on another text-field with the default keyboard type, he can change the keyboard from Bitmoji to the default, and then if he taps on the decimal text-field the decimal pad appears.
So the problem occurs when the user taps on the decimal text-field and the last used keyboard was the Bitmoji keyboard.
If it provides any help, the text-field has been set up as an outlet from a storyboard.
Has anyone experienced something relevant (with Bitmoji or any other keyboard extension)? Is this an iOS bug?
Update:
This happens with other keyboard extensions as well. The only way that I have fixed this for now is to disable all keyboard extensions from my app.

How to prevent the input field from losing focus when the user taps elsewhere in the screen?

How do I prevent an input field from losing focus when the user taps elsewhere other than the onscreen keyboard and the input field?
What I would like to happen is that even if the player taps on a button elsewhere, the keyboard remains up, and when they tap on the keyboard to type, the focus is still on the input field.
I should also note that I am working with Unity3D and UGUI. I have built my Unity project and am modifying the iOS keyboard functionality via Keyboard.mm. I'm doing this primarily because how the TouchScreenKeyboard works out of the box from Unity3D doesn't fit my requirements.
I don't know about unity, but some things to try:
When a keyboard is showing, remember the current focused field, and
when any other element is touched, hand back the focus to the
remembered field after the touch was processed.
Remember the focus
field, and when the user touches the keyboard again, set the focus to
the remembered field.
Next to remembering the focus field and set the focus again when needed I fear there will be not many solutions, independent from the framework you're working in.

Email keyboard in alternative mode (when digits are visible)

I have a UITextField where sip connection data can be entered. So for example:
2342452#somedomain.com
In general problem is that this looks like an email, but for 90% of cases user will enter numbers first.
So I've set email keyboard, but I would like to activate alternative keyboard mode, so digits would be visible when keyboard is shown (see picture):
Is it possible?

HTML5 textfield on IOS Keyboard: How to jump to next field with enter, leaving keyboard open

I am implementing a HTML5/javascript "mobile" site and I have some textfields where the user should be able to jump from one textfield to another using 'enter'. On the last textfield(when some specific requirements are met) the user is sending this "form" to a server.
I implemented this using javascript, catching the enter key and setting the focus on the next textfield. It works perfectly on pc but on ios, after executing the first "enter" and setting the focus on the next textfield, the ios keyboard closes and no textfield is focused.
Any ideas?

Resources