I'm developing a Picotron app similar to Spotlight on macOS. I want the window to remain hidden until a keybind (e.g., cmd/ctrl + k) is pressed. Currently, I'm unsure how to implement this. While exploring /system/api/events.lua, I found references to command and control keys but no way to detect multiple keys pressed simultaneously.
One possible workaround is to track key down and key up events to manage state. Then, during the update cycle, if both cmd/ctrl and k are active, the menu would appear. However, I'm not certain if this is feasible or if the window manager intercepts such input.
Additionally, I'm curious about creating a background application that can receive events without displaying a window. Any guidance would be appreciated. Thanks!
[Please log in to post a comment]