开发者

iPad focus-event

开发者 https://www.devze.com 2023-01-19 03:57 出处:网络
I try to get the following working: I have a form containing selectboxes and inputs. There are two buttons on top of the virtual keyboard - \"next\" and \"previous\".

I try to get the following working:

I have a form containing selectboxes and inputs. There are two buttons on top of the virtual keyboard - "next" and "previous". Navigating through the input fields works. When I reach a selectbox (by pressing "next"), the keyboard stays and the selectbox shows its items. When I select an item by tapping on an item of the selectbox, the element is selected and the keyboard disappears.

That's not what I want. I want the ne开发者_如何学编程xt input or selectbox to be focused or the keyboard to stay.

I read (and tested) that the focus event does not work. Is it possible to get this running by a workaround?

THX!


then assign the first responder to the next ui element and the keyboard will remain visible. You should do this in the code that accepts the input from the selectbox.

I am speculating, since there is no code included in the question, but I think the suggested approach should work

0

精彩评论

暂无评论...
验证码 换一张
取 消