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'd love this too, but I haven't been able to figure out how to make it work.
As it stands, if I make the window able to be focused (by commenting this line and these lines), input events are sent to the webview, but it eats them, and they don't propagate to the desktop, so the window isn't click-through anymore.
I figure it must be possible somehow to hack around with GTK's event propagation functions to do this. Duplicate the event, propagate one to the webview, and the other to the desktop? Maybe. 🤔
anko
changed the title
keyboard entries not being recognized
Feature request: Recognise keyboard button presses globally, and pass them to addEventListener in page JS
Jul 15, 2020
Finally figured out how to do this. This change makes it possible for
the first time for the overlay window to react to keyboard events, and
so it's possible to make any arbitrary interactive web UI with it!
It's pretty neato.
This is a proof of concept! There are many minor bugs, like
drag-and-drop completely breaks when trying to drag out of the overlay's
clickable area, and enter/leave events jitter when sweeping the mouse
along edges of the screen. That kind of thing.
Related to #3 and #5, but not global; no events are duplicated here.
hudkit doesn't seem to recognize when buttons are pressed on the keyboard. Here's a simple test page that should be displaying the keycodes.
The text was updated successfully, but these errors were encountered: