Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map-key doesn't work after refocusing frame #184

Open
kenrestivo opened this issue Nov 11, 2014 · 2 comments
Open

map-key doesn't work after refocusing frame #184

kenrestivo opened this issue Nov 11, 2014 · 2 comments

Comments

@kenrestivo
Copy link

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.

@daveray
Copy link
Collaborator

daveray commented Nov 12, 2014

Re-registering shouldn't be necessary. Can you provide a minimal repro case?

@kenrestivo
Copy link
Author

Will do. I've had to put this aside for the moment but can look again at it in a couple days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants