Closed ScottChesworth closed 2 years ago
Seems reasonable. That said, I wonder whether the correct fix here is instead to stop the MIDI Editor from losing focus when the OSARA config dialog is dismissed. I think that should be possible and not too hard. It'd be nice if those REAPER Windows weren't so screwy when it comes to focus, but I guess that's the nature of floating windows.
Could fixing the focus loss apply to both platforms, though?
It should work cross-platform, yes.
A comment from Justin from Cockos on a different issue made me realise there's a really easy (and more correct) fix for this. Windows returns focus to the owner window when dismissing a dialog, so we should make sure the owner window is the right one.
I reckon there's a use case for this option to be toggle-able via an action that would be available in the MIDI Editor category. Here are steps to illustrate:
Adding this action would avoid the issue. Users could toggle the state of "Report MIDI notes in MIDI editor" without leaving the MIDI Editor and subsequently needing to redirect focus.
Thanks in advance if there's anything you can do.