-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Capture Key Events #173
Comments
In native platforms, you should be able to use the At some point, |
I'll take a look and see if I can get this to work. You added it to a milestone, so do you think there's additional work needed to be done to make this easier? |
Yes. As I said, there should eventually be some built-in cross-platform subscriptions like |
Wow, that'd be really great! For now I'll try to use the approach you mentioned earlier. |
Note though, that for Cmd-Q on macOS, the events subscription doesn't intercept the key combination and the app is still forcefully terminated. #170 is probably the solution for this, as well as to have a way to gracefully quit the |
@hecrj Yeah, I had tested this on the other PR, this issue can be closed. |
Is there a good way to, say, capture the Command-Q key event to quit the app on MacOS?
We tried to implement this pulling in some of the core iced code into our application, but the approach was less than ideal.
The text was updated successfully, but these errors were encountered: