11
votes

I am making a custom keyboard extension, and in this keyboard, i have another uitextfield as a search field, so when I type on the custom keyboard, I am not sending the text to the safari's textfield or some chat app's textfield, I am sending the text to the uitextfield search field in the custom keyboard, so I can do some search and then when the search results come back, i am sending the search result to the safari's textfield or some chat app's textfield. So there is a first responder issue here. When I set the search text field as first responder, and trying to set the first responder back to the safari's textfield. It's not working any more. The question is how to set the make safari's as first responder again? after it's first responder been taking by search field.

1
did you find the solution?nurnachman
@nurne Nope. But I found a solution that I disabled the text field user interaction.yong ho
trying the same here but after typing in the search text field in the custom keyboard the user cannot go back to typing in the regular textfield from Safari. By disabling userInteraction this does not change. How did you manage to fix it?Mr. Zystem
As I can see - "GIF Keyboard" app has such functionality, so there is should be solution. Any suggestions, please?landonandrey
@yongho Did you got the solution for this ?Deepak Sasindran

1 Answers

-5
votes

iOS is the sole decider on when to display a keyboard, be it a system keyboard or a custom keyboard (they are the same now).

You can add UI elements to your custom keyboard, but you cannot decide when to display the keyboard.

Apple went a long way allowing 3rd party keyboards, and as a user, I wouldn't want a keyboard popping-up without me requesting it.