map-key doesn't work after refocusing frame
kenrestivo opened this issue · 2 comments
Decided to play around with map-key and see if I could get it working.
Turns out map-key works great the first time the window opens.
But if the window loses focus (i.e. click in another app's window), upon refocussing the seesaw window, all the map-key callbacks stop getting called.
Doesn't seem to make a difference whether the events are attached to the frame or widgets within it, still breaks when focus is lost and regained.
Is there some undocumented trick required, i.e. is registering a callback upon focus required whenever it's lost and re-adding all keybindings every time that happens?
This is by the way on Linux with the notion window manager.
Re-registering shouldn't be necessary. Can you provide a minimal repro case?
Will do. I've had to put this aside for the moment but can look again at it in a couple days.