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
I'm working on an overlay app. To keep the window on top and not close any Fullscreen game I had to put 'focus' to False and 'on_top' to True. The downside to this is that even tho I can press and scroll and interact with my app, keyboard messages are not being received on the window (as expected since there is no focus). This is the current solution I cam up with.
I made a javascript function to check for focus on input fields when someone clicks on it that then calls starts a listener using the keyboard lib. Which then allows me to send down/up and keycodes to javascript.
Wat I currently have on the JS side. This way I have to manually replicate and recreate all keyboard shortcuts and functionalities from scratch which is pretty annoying.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm working on an overlay app. To keep the window on top and not close any Fullscreen game I had to put 'focus' to False and 'on_top' to True. The downside to this is that even tho I can press and scroll and interact with my app, keyboard messages are not being received on the window (as expected since there is no focus). This is the current solution I cam up with.
I made a javascript function to check for focus on input fields when someone clicks on it that then calls starts a listener using the keyboard lib. Which then allows me to send down/up and keycodes to javascript.
Wat I currently have on the JS side. This way I have to manually replicate and recreate all keyboard shortcuts and functionalities from scratch which is pretty annoying.
What I wished I could do but cannot seem to get to work is KeyboardEvents. This way I could replicate keypresses on the focused fields.
Beta Was this translation helpful? Give feedback.
All reactions