Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366108 - [Compatibility] Keyboard shortcut for view menu doesn't work in standalone views
Summary: [Compatibility] Keyboard shortcut for view menu doesn't work in standalone views
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.2 M5   Edit
Assignee: Remy Suen CLA
QA Contact: Remy Suen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 15:46 EST by Brian de Alwis CLA
Modified: 2012-01-24 12:53 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian de Alwis CLA 2011-12-08 15:46:41 EST
Version: 4.2.0
Build id: I20111205-2330

Cmd-F10, Cmd-Shift-F10, and Shift-F10 normally bring up the gutter menu, system view menu, and context menu (respectively). They fail to work in standalone views.

Means to test:
1. Open a perspective with standalone views.  I'll attach my own customized version of the Java Browsing perspective here, or you can optionally install the tiny package of hacks from

   http://www.cs.ubc.ca/~bsd/eclipse-tools/
   (not categorized, called Brian's Hacks)

or download the plugin and add it to your target platform

   http://www.cs.ubc.ca/~bsd/eclipse-tools/plugins/bsd.eh_0.0.6.jar
  
2. Start Eclipse
3. Set the focus to one of the standalone views and click one of the shortcut keys.  See nothing happen.
Comment 1 Remy Suen CLA 2011-12-08 17:03:50 EST
I could imagine why the view menu wouldn't show up but not sure about the others. Will take a look.
Comment 2 Remy Suen CLA 2012-01-10 09:24:53 EST
The code in ShowViewMenuHandler expects that the part is within a tab folder and looks for the menu's tool item to select.

May be possible to introduce some logic in there to create the menu if the part isn't within a tab folder.
Comment 3 Remy Suen CLA 2012-01-10 10:01:37 EST
Fix pushed to master.
http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=53550a8e6801d78be18f99c7140b2d86f28a4ffc

Thanks for the bug report, Brian.
Comment 4 Remy Suen CLA 2012-01-24 12:42:54 EST
(In reply to comment #0)
> Cmd-F10, Cmd-Shift-F10, and Shift-F10 normally bring up the gutter menu, system
> view menu, and context menu (respectively).

Both Shift+F10 and Ctrl+Shift+F10 brings up the context menu for me on Windows 7 in 3.x and 4.x.

Verified with I20120123-2200 on Windows 7 that Ctrl+F10 will bring up the view menu with Brian's standalone perspective.

Brian, could you open separate bugs for the other problems if they are still affecting you? Thanks.
Comment 5 Brian de Alwis CLA 2012-01-24 12:53:40 EST
Confirmed Cmd-F10 and Shift-F10 work in MacOS X too.  (Thanks Remy)

Cmd-Shift-F10 for the system view menu doesn't work though.  Will file a separate report for that.