Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

external keyboard tab event on ios

One of my ipad app screen having multiple textfield. On that few textfields are generating popup for user input action/decision/prepopulate info etc. It is working fine when default ipad keyaboard is using. but when we tried with external keyboard with tab key, I am getting multiple textfieldshouldbeginediting events for all presence textfields. I have added all logic into textfielddidbeginediting methods, but I am not able to hide the keyboard which are popup due to textfieldshouldbeginediting through other key events which are generate due to tab key. how can we stop tab key events from external device? or I dont want to get multiple textfieldshouldbeginediting when tab key is pressed.

I can reproduce this issue through simulator & use macbook keyboard tab key for multiple uitextfields.

TextField becomeFirstResponder Issue for tab key(Keyboard) action

like image 867
9 revs Avatar asked Jan 03 '14 12:01

9 revs


People also ask

How do I use an external keyboard to control my iPhone?

Control iPhone with an external keyboardGo to Settings > Accessibility > Keyboards, tap Full Keyboard Access, then turn on Full Keyboard Access. Control your iPhone using keyboard shortcuts. To customize the keyboard shortcuts, tap Commands.

Is there a tab on iPhone keyboard?

That's right, if you tap that microphone icon on the keyboard and say “Tab key,” iOS will insert a tab for you. That'll work pretty much anywhere you can use Dictation, including in Shortcuts.


1 Answers

I had a similar issue and ended up having to put all logic in textfielddidbeginediting methods.

To dismiss the keyboard, you can just use your own method doing something like:

[self.view endEditing:YES];
like image 88
Amos Avatar answered Oct 10 '22 02:10

Amos