RustAudio / baseview

low-level window system interface for audio plugin UIs
Apache License 2.0
267 stars 57 forks source link

WIP: Input focus handling #125

Closed gamingrobot closed 7 months ago

gamingrobot commented 2 years ago

When a child window is spawned by open_parented the KEYUP/KEYDOWN events are still sent to the parent. This makes it so the child becomes focused so key events can go to its wnd_proc function.

robbert-vdh commented 2 years ago

I'd say the correct solution would be to add callbacks to baseview to allow the application to grab and release input focus as needed. That sounds like a much better idea than grabbing input focus on mouse down and then never returning it again.