Native Keyboard, identifying, enable/disable, test for nil...

This is a three part question…

Is there a way to get or identify which key on the native keyboard has been pressed? Specifically looking for the iPad dock/undock, keyboard visibility button in the lower right hand corner of the keyboard.

I am trying to find a way to disable it or find a way to detect if the keyboard is up or down, or on its way down. On its way down because I want to match the transition that I have for the “going up” part of the keyboard showing.

I am not sure what would be preferred as i have gotten the transition.to to work when the keyboard “opens”, but I am unsure when “nil” would apply… does nil get assigned when the key is pressed (beginning of keyboard transition) or does if wait till the keyboard is fully closed before nil is assigned.

I guess this all depends on what is available…

Thanks,
-Jason

[import]uid: 155454 topic_id: 27414 reply_id: 327414[/import]

I don’t believe there is a way to check for that key, although I may be mistaken - however RE your transition, just move the group down the same way you moved it up immediately prior to calling native.setKeyboardFocus( nil ) - that should do it I believe :slight_smile: [import]uid: 52491 topic_id: 27414 reply_id: 111489[/import]

Thanks Peach,

Although that is the problem with that key. I cannot seem to test for the keyboard being in a “nil” state. As in when that particular key is pressed I can’t seem to find a way to check the keyboard state or whether that key has been pressed. I believe that key calls native.setKeyboardFocus( nil ), but how can I tell?

Thanks again,
-Jason [import]uid: 155454 topic_id: 27414 reply_id: 111503[/import]

Hey Jason - that is a good question - let me ask another member of the team in the AM and see what I can find out :slight_smile:

Peach [import]uid: 52491 topic_id: 27414 reply_id: 111621[/import]

Bump… [import]uid: 155454 topic_id: 27414 reply_id: 113550[/import]