Closed netonjm closed 4 years ago
🤯, I'm gonna need a bit of time to understand the logic
@netonjm @garuma Hope the above suggested changes make sense. If not I can submit a commit. Let me know either way.
@netonjm Let me know if the new commit is ok and works for you too?
sounds good, could you please verify it? I'm working in another stuff
@netonjm I tested in Proppy and in VsMac and appears to work. But just to be safe it would be nice to have someone else play with it. I'm a terrible tester :p
This issue was hitting some problems. Use NSApplication.SharedApplication.RunModalForWindow (window) over a GTK application has very odd behaviours with our hacks. In this case, it sets null the current NSApplication.SharedApplciation.MainWindow, and that's the reason because the focused ring is not visible and not receiving the keyevents.
Additional to this, the IDE has a default behaviour of focus the Document selected when it gets the focus, and this behaviour it was executed after the Proppy call. That's because now we wait until SynchronizationContext to execute our proppy focus call.
The fix doesn't breaks the Standalone
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1002094