Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 8ae94c6

Browse files
Merge pull request #9218 from mono/dev/davkar/fix988924
Fix 988924: Some commands (save, undo) do not work if editor is detat…
2 parents 7a60aec + a6110a5 commit 8ae94c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2426,7 +2426,8 @@ Windows.GtkWPFWidget GetFocusedWpfWidget ()
24262426
Gtk.Widget GetFocusedChild (Control widget)
24272427
{
24282428
Gtk.Container container;
2429-
2429+
if (widget?.nativeWidget is AppKit.NSWindow window)
2430+
widget = Mac.GtkMacInterop.GetGtkWindow (window)?.Child;
24302431
do {
24312432
container = widget?.nativeWidget is Gtk.Container ? widget.GetNativeWidget<Gtk.Container> () : null;
24322433
if (container != null) {

0 commit comments

Comments
 (0)