-
Notifications
You must be signed in to change notification settings - Fork 57
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
Set input focus on alt-click #463
base: main
Are you sure you want to change the base?
Conversation
I've opened #466 which allows window events to be handled by baseview. I think this could be used in conjunction with what you have here to focus the window when requested by say a textbox being focused etc. |
Are you thinking of adding something like this: ViziaWindow { application, on_idle, should_close: false, should_focus: false } and then handling the event similarly to what you did for close? |
No, that's only there for close because closing the window needs to happen after event handling. What I'm proposing is adding a focus event to |
Oh, I see. So I will just have to add the focus code inside |
The focus code would go inside the closure I've added to |
Ok, I will have a look thank you. Unfortunately at the moment |
I have submitted a PR for the input focus issue (RustAudio/baseview#170). Assuming it is accepted and merged in
baseview
these are the changes required onvizia_baseview
.I have opted for the least intrusive call on alt-click but I wonder if there are other occasions that would need it. Let me know what you think.
I have tested this as mentioned in the
baseview
PR.