Bug 433062 - Add a command and keybinding for toggling the focus of active view
Summary: Add a command and keybinding for toggling the focus of active view
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.12   Edit
Assignee: Greg Amerson CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed, noteworthy
Depends on:
Blocks:
 
Reported: 2014-04-18 00:38 EDT by Greg Amerson CLA
Modified: 2014-04-23 16:38 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Amerson CLA 2014-04-18 00:38:08 EDT
Recently I've started to try to integrate the "focus" view feature of mylyn more in my dev workflow however, I often find myself needing to "unfocus" the view so I can browse more freely.  The Alt+click doesn't always work in some browsing scenarios.  I would like the ability to quickly "toggle" the focus of the view without having to use mouse to click the toggle button on the view toolbar action.  It would be nice if a new "toggle" command could be added that would invoke the focus view action for active part if it is available.
Comment 1 Greg Amerson CLA 2014-04-18 01:03:25 EDT
Contribution is here: https://git.eclipse.org/r/#/c/25250/
Comment 2 Greg Amerson CLA 2014-04-18 01:06:31 EDT
In the contribution I added a new command called "Toggle Focus Active View" with a default keybinding of "Alt+Shift+U" (I tried to find some rather obscure combination that also was a letter in the word "focus", because F was too highly used).

The ToggleFocusActiveViewHandler just looks at the current active part and if it is a viewPart then it looksup the Focus view action and performs a toggle on it.
Comment 3 Greg Amerson CLA 2014-04-18 01:19:41 EDT
I tried out the "Alt+Shift+U" keybinding in my kepler-sr2 dev environment and it caused some havoc.  I have switched the keybinding to Alt+Shift+H since it seems more unused.
Comment 4 Sam Davis CLA 2014-04-23 16:38:18 EDT
Thanks very much for the contribution!