You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'Window.request_keyboard' without showing keyboard #986
What I am trying to achieve is listening for key events (on_key_down, on_key_up) without the keyboard showing (not listening for keys that can be typed on the keyboard, D-Pad events that are passed through the keyboard provider (DPAD_UP,DPAD_DOWN,DPAD_LEFT,DPAD_RIGHT,DPAD_CENTER))
Receiving the actual events works fine, but only when the keyboard is showing. I need it to not show the keyboard, and still be able to receive the events. (opens when Window.request_keyboard, stops receiving events after you close the keyboard)
I have been able to get events after the keyboard is hidden by the user, by removing unbind from the widget._keyboard_closed. I still don't know how to not make the keyboard show at all.
Activity
ZingBallyhoo commentedon Jan 18, 2017
Update:
I have been able to get events after the keyboard is hidden by the user, by removing
unbindfrom thewidget._keyboard_closed. I still don't know how to not make the keyboard show at all.inclement commentedon Jan 18, 2017
Have you tried binding to Window.on_key_down?
ZingBallyhoo commentedon Jan 18, 2017
@inclement Thanks! That does indeed work.
z-huabao commentedon Apr 22, 2019
@ZingBallyhoo hello, can you tell me how to "binding to Window.on_key_down" in code billow: