Community
Participate
Working Groups
Shift + F10 does not bring up the context menu on Linux SuSE 8.1
This is a setting configured at the window manager level. It's supported on Windows and KDE. Unless there is a lot of demand for this functionality on a window manager that does normally support it, then it is unlikely that it will be moved into Eclipse. On Microsoft Windows, Shift+F10 brings up the context menu. On KDE, "Menu" appears to be the default (though I'm not clear what that button is exactly). To switch the setting on KDE (3.1-10 RedHat), do the following: 1.) Open the "Control Center". 2.) Select "Regional & Accessibility", and then "Keyboard Shortcuts". 3.) Choose the "Application Shortcuts". 4.) Under "Navigation", choose the "Popup Menu Context" item. 5.) Click on the weird-looking button at the bottom next to the word "Custom" 6.) Type in the key stroke you would like. For example, hold down shift and press F10. 7.) Click "Apply". 8.) Close the "Control Center". Now try pressing Shift+F10 (or whatever key stroke you selected) in Eclipse. A context menu should appear.
I tried this with SuSe 8.1 GTK (KDE 3.0.3) and there still problem with the GEF Example. Is OK if try to get the context menu in Navigator View or Package explorer but not for logic example editor Steps: 1. Define Shorcut in "Control Centre" - Open "Control Centre" - Choose "Look & Feel" ->Shortcuts - Go To "Shortcut Schemes" Tab ->"Application Shortcuts" Tab -> "Navigation"- >"Popup Menu Context" and change to Custom. I've typed "Shift + F10" and OK in 'Define Shortcut' Dialog 2. Create a java project in Eclipse 2.1.1 3. Create the GEF Logic example 4. Add a label to your logic example 5. Right click to get the context menu (OK as expected) 6. Now select Shift + F10 to get the context menu again for your label (accesibility) Actual (not as expected): notice that no context menu for the GEF shapes. 7. Now set the focus in Package Explorer (Java Perspective) and select the java project root node. 8. Select Shift + F10 to get the context menu for the java project. Actual: OK as expected - the context menu appear for the java project in Package Explorer
Okey-dokey, let's play hot potato. I don't believe this is a problem with platform-ui. First of all, it has been mentioned that this is specific behaviour of GEF, and that it works everywhere else. Secondly, "Shift+F10" is being declared as a window manager shortcut (not a platform key binding). Thirdly, even if it were platform key bindings, these key bindings have been radically overhauled for 3.0. The GEF download page says it requires 2.1.1. Unless GEF is willing to say that their stuff works with something M4 or later, it could be very hard to show that this is still a problem in the new key binding architecture. This might be a problem with SWT. But I am in no position to evaluate that. I am hoping that GEF will be able to provide some insight into what might be causing the problem.
Douglas- GEF is using a standard JFace MenuManager. And, we are doing the normal Control.setMenu(manager.getMenu()), so I don't know what could be wrong. Our primary control is a Canvas. Magda, can you get the Java Editor to show a popup menu? StyledText is also based on Canvas, and it could be possible that native trees are not an equivalent test case.
I was hoping you could do a couple things: 1.) Reproduce the bug on 2.1 and 2.1.2 using GEF. 2.) Put in print statements to track who has focus when the bug happens. My suspicions are that the focus isn't making it to the correct control. This might be an SWT problem particular to your set of widgets. Thanks for your help, by the way.
Magda, please try Shift+F10 in the Java source editor. We do not have access to a Suse box at this time. On RedHat/GTK, Shift+F10 is working fine.
Sorry for being late with thi sI am working on something else right now and did not get the chance to go back to the problem Q) Reproduce the bug on 2.1 and 2.1.2 using GEF? - I reproduced this bug with Eclipse 2.1 ans well not just Eclipse 2.1.1 (this bug was opened for quite some time and first noticed in 2.1 ) Q)Please try Shift+F10 in the Java source editor. We do not have access to a Suse box at this time. On RedHat/GTK, Shift+F10 is working fine. - I was not able to get the context menu for Java Editor using Shift + F10 on SuSe 8.1 GTK. I can get the context Menu for the .java file in Package Explorer but not on the opened Java Editor. NOTE: sometimes I get the wrong context menu to the java editor, if the focus is not set to the correct control - here java editor or the GEF controls in loggic example. see the example below 1. Create a java project in Eclipse 2.1.1 2. Create a Java Class C1.java 3. Open Java Editor for Jav aClass C1.java 4. Right click in java editor to get the context menu (OK as expected) 5. Now select Shift + F10 to get the context menu again for jaav editor (accesibility) Actual (not as expected): notice that no context menu 6. Now set the focus in Package Explorer (Java Perspective) and select the java class node C1.java (or the java project root). 7. Select Shift + F10 to get the context menu for the java project. Actual: OK as expected - the context menu appear for the java class (or project) in Package Explorer 8. If now set focus again in Java Editor and press Shift + F10, you might get the context menu from the Package explorer (BUT THE WRONG CONTEXT MENU - NOT THE right context menu items for java editor - as in step 4) It looks like the focus was still on Package explorer not on editor. As workaround I have to click tow/three times on java editor (to make sure the right control has the focus), and then pres again Shift + F10 - no pop-up menu will appear
I'm inclined to say this is a bug with either GTK or SWT. I know they've had focus problems before. Unless you have something more you can do for this bug, could you punt it to SWT? Thanks.
Not sure if this qualifies for "accessibility" keyword since only win32 is officially accessible (to screen readers, etc.)
Fixed > 20031031.