From 9276d1edebdceecf877bfc6910a2d643a3bd5635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Tue, 26 Jul 2016 15:50:13 +0200 Subject: Fixed 'Bug 42795 - View >> Focus Document is not functioning.' --- main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs index d0d6c5a808..60d9f6880e 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs @@ -379,6 +379,8 @@ namespace MonoDevelop.Ide.Commands protected override void Run () { + IdeApp.Workbench.ActiveDocument.Select (); + IdeApp.Workbench.ActiveDocument.Editor.CenterToCaret (); IdeApp.Workbench.ActiveDocument.Editor.StartCaretPulseAnimation (); } -- cgit v1.2.3