Bug 44919 - [KeyBindings] dialog keyboard shortcuts gone
Summary: [KeyBindings] dialog keyboard shortcuts gone
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2003-10-15 13:05 EDT by Gary Shea CLA
Modified: 2003-11-10 18:26 EST (History)
0 users

See Also:


Attachments
configuration details report from Eclipse Help > About Eclipse Platform > Configuration Details (92.31 KB, text/plain)
2003-10-22 14:01 EDT, Gary Shea CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Shea CLA 2003-10-15 13:05:35 EDT
3.0M4/linux-gtk/j2sdk1.4.2.  I start eclipse with: 
----- 
ECLIPSE_DIR=/usr/local/eclipse-SDK-3.0M4 
 
exec $ECLIPSE_DIR/eclipse -data $HOME/.eclipse-3.0M4 -vm 
/usr/local/j2sdk1.4.2/jre/bin/java 
---- 
Resize.  Go directly into the preferences dialog.  Scroll down to Java with arrow keys, 
hit space bar, scroll down to code generation.  Hit Alt-E.  Nothing.  On further 
experimentation, all preferences keyboard shortcuts appear broken.  In Code 
Generation/Comments I continued to try using keyboard shortcuts, and at one point 
they all happened at once: I got three editors in a row corresponding to the three times 
(don't learn fast :) I pressed Alt-E.  Mostly however there was no apparent result to 
hitting the keyboard shortcut.
Comment 1 Gary Shea CLA 2003-10-15 15:13:34 EDT
Changed the summary to reflect that every dialog I've used (preferences, properties, 
new java project) has broken keyboard shortcuts. 
Comment 2 Chris McLaren CLA 2003-10-21 20:49:53 EDT
doug, reporter is using linux. please comment on this bug.
Comment 3 Douglas Pollock CLA 2003-10-22 12:07:12 EDT
I cannot reproduce your bug on my machine.  From previous posts to eclipse-dev,
I gather you tend to have "/usr(/local)" mounted as read-only (as per FHS).  I
set up a test environment like this, and still could not reproduce.  

I'm going to need more information.  You have said that you are using
Eclipse-GTK-3.04M4.  It would be nice to know what window manager you are using,
and what distribution (if any).

Also, could you please attach the output of "Help > About Eclipse Platform >
Configuration Details..." to this bug report.  Also, what keyboard layout are
you using?

And, finally, do you have any applications running which trap key and mouse
events globally?  Or, are you performing these steps while communicating over
VNC (or similar protocol)?


Thanks for your help.


(moving to P5 -- waiting for reply)
Comment 4 Gary Shea CLA 2003-10-22 13:57:55 EDT
The distribution is Mandrake 9.1; my gtk version is 1.2.10 (as delivered with the 
distribution, I believe... can't remember if there's been an upgrade); this distribution is 
totally stock, ain't modern unix wonderful, don't have to hack the hell out of it in order 
to get some work done.  I installed it and haven't touched it since. 
Comment 5 Gary Shea CLA 2003-10-22 14:01:03 EDT
Created attachment 6524 [details]
configuration details report from Eclipse Help > About Eclipse Platform > Configuration Details
Comment 6 Douglas Pollock CLA 2003-10-22 14:48:02 EDT
`rpm -q gtk2`  What version of gtk2 are you running (if any)?  I am running
"gtk2-2.2.1-4" on a RedHat 9 box.
Comment 7 Gary Shea CLA 2003-10-22 15:22:34 EDT
It's installed as gtk+2.0-2.2.1-2mdk 
Comment 8 Douglas Pollock CLA 2003-10-22 15:32:15 EDT
What window manager?
Using applications that trap key events?
VNC?
Comment 9 Gary Shea CLA 2003-10-22 16:33:04 EDT
When I said that I'm running stock KDE, I hoped that would be an answer to the 
question of what window manager.  I have no idea what wm is running, and there's 
nothing in the ps output with wm in it.  Whatever it is, I haven't changed it.  
Applications that trap events: don't think so.  I'm running some basic app's (licq, xmms, 
knode, konqueror, konsole), nothing that is active outside its own window.  VNC: nope.  
I'm sitting in front of the box.  It's probably no help but I can tell you that 3.0M3 _did_ 
have functional shortcuts in the dialogs, and nothing changed on my machine in the 
half hour between using M3 and M4 (I know... famous last words).  I'm going to 
upgrade to mandrake 9.2 this weekend, so that will provide a new data point. 
Comment 10 Douglas Pollock CLA 2003-10-22 17:21:08 EDT
Sorry about that.  I didn't see the mention of KDE.

I'm very close to having to mark this as "WORKSFORME".  I can't reproduce 
given the steps below, and I'm not sure what other variables could possibly be 
affecting this.  Could you also try I20030822/3?  It's a long shot, but 
maybe....

Oh, and maybe processor speed?  Seems far-fetched, but you mention something 
that sounds like the application is catching up with you.  How fast is your 
processor?

Also could you try to reproduce with a fresh workspace?

Thanks for your help.

Comment 11 Douglas Pollock CLA 2003-11-05 10:13:35 EST
Gary: is this still a problem for you?
Comment 12 Gary Shea CLA 2003-11-05 15:09:55 EST
Sorry, I forgot that there were a couple of things you wanted me to try: a recent build, and a fresh 
workspace. 
 
Not sure what a fresh workspace means.  Re-install?  If so, I've done that quite a few times with no 
changes in the symptoms.  If it means opening a new project, here's a report of that process: I 
open eclipse and close the project I was working on.  I will attempt to navigate by keyboard 
shortcuts wherever possible: 
 
AltF, right arrow, AltR (doesn't work, hit return), New Project popup comes up, AltN (doesn't work, 
hit return), type in project name, AltD (doesn't work, hit tab), spacebar (to uncheck the box), AltR 
(doesn't work, hit tab twice to get to Browse button), spacebar brings up project directory popup, 
mouse to select, AltO (it worked!), back to New Java Project, AltN (doesn't work, tab twice to Next 
button), spacebar activates button, to JavaSettings, AltF (doesn't work, hit return). 
 
I haven't moved to Mandrake 9.2 yet so no change in any of the software I'm running.  Since it's 
been a while, would you like to suggest a more recent build than I20030822/3??  I can try it today. 
 
Comment 13 Gary Shea CLA 2003-11-05 15:12:23 EST
To clarify, by 're-install' I mean: shut down eclipse, delete all ~/.eclipse* files including the --data 
file, start eclipse and re-setup preferences and projects. 
Comment 14 Douglas Pollock CLA 2003-11-05 15:35:07 EST
Alt+R wouldn't work.  That's not how mnemonics work on GTK.  You need to 
release the "Alt" key, and then type "R".  This is how the windowing toolkit 
works.  (cross-test with gedit)

However, I know understand your problems.

SWT: This is a problem with mnemonics in the dialogs on GTK.  Cross-testing to 
Windows XP shows the problem does not exist on all platforms.  Essentially 
mnemonic traversal seems to be completely suppressed in dialogs on GTK.  This 
is different than the normal behaviour for GTK applications.  Follow Gary's 
steps from Comment #12 to reproduce.  If you need a snippet, let me know.
Comment 15 Steve Northover CLA 2003-11-06 17:45:59 EST
SSQ, did you and I break this recently, playing with mnemonic support for key 
bindings?
Comment 16 Silenio Quarti CLA 2003-11-07 12:09:21 EST
Mnemonics on dialogs are working fine too me (build I20031105). I have RedHat 9
and gtk2-2.2.1-4. This may be a mandrake/kde specific problem.
Comment 17 Gary Shea CLA 2003-11-07 21:20:31 EST
I just tried eclipse-SDK-I20031105-linux-gtk.zip, repeated the re-install described above.  Exact 
same symptoms.  Here's the command line: 
 
/usr/local/eclipse-SDK-I20031105/eclipse -data ~/.eclipse-I20031105 -vm 
/usr/local/j2sdk1.4.2/jre/bin/java 
 
I said this before, but wanted to remind y'all that when I switched from M3 to M4 I experienced 
sudden loss of keyboard shortcuts.  To the best of my knowledge, nothing on my system changed 
at that time. 
Comment 18 Silenio Quarti CLA 2003-11-10 17:24:04 EST
Is NumLock on? Try unset it.
Comment 19 Silenio Quarti CLA 2003-11-10 17:32:40 EST
I am assuming NumLock is the problem. Fixed > 20031110. Please reopen if otherwise.
Comment 20 Gary Shea CLA 2003-11-10 17:49:24 EST
Good call!  Yep, NumLock is it.  I am hoping that when you say FIXED it means that in some future 
version, keyboard shortcuts will again work with NumLock on.  I don't mind turning it off for now but 
see no reason why having NumLock on should break anything... keyboard shortcuts worked fine 
with NumLock on until M4 (as I recall...).  Thanks again for figuring it out! 
Comment 21 Silenio Quarti CLA 2003-11-10 18:26:59 EST
NumLock does not matter anymore for mnemonics. So it will work if it is on or 
off.