Bug 7650 - "Opening" file using solution explorer does not give focus to editor
Summary: "Opening" file using solution explorer does not give focus to editor
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Shell ()
Version: 3.0.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-10-04 15:17 UTC by Rogier van der Hee
Modified: 2016-01-08 10:16 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Rogier van der Hee 2012-10-04 15:17:03 UTC
One little gripe that gets me every time is that I use the solution explorer to switch between classes and then there is an issue with the focus (at least for me).

If I click on a tab to switch classes, the focus is on the text editor of the newly selected tab and copy-paste works perfectly.

If I click on a class in the solution explorer that is already open, it switches to the right already open tab but does not give focus to the editor.

Try this:
1. Open two classes
2. Select text in class1 (blue)
3. Switch to class2 (using either solution explorer or tabs)
4. Switch to class1 using tabs: text is selected again and ready for copy/paste
5. Switch to class2 (using either solution explorer or tabs)
6. Switch to class1 using solution explorer

Now the text is selected but grey and not ready for copy/paste or editing or whatever. I need to extra click in the editor, which gets me every time....
Comment 1 Mike Krüger 2012-10-05 00:20:46 UTC
We're currently working on the shell design.

But I doubt that can be fixed easily because if you use the mouse it moves the focus away from the document area. If you click in the solution explorer then the tree has the input focus - I don't think that it should move back to the text editor.

However the tabs are a different thing.

@Lluis: would it be possible that the tab control remembers which widget had the input focus inside the document and restores that, if the tab is selected again ?

For the text editor it's simple - but for stuff like the gettext editor it would be nice to give focus back to the widget that it had the focus before.
Comment 2 Colby Russell 2015-12-31 04:10:36 UTC
This has been fixed to work as outlined in comment 0 in current versions.  Mark closed?
Comment 3 Lluis Sanchez 2016-01-08 10:16:39 UTC
Yep, closing.