Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 43407 - [KeyBindings] unable to set certain key sequences in Preferences -> Workbench -> Keys
Summary: [KeyBindings] unable to set certain key sequences in Preferences -> Workbench...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Douglas Pollock CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 43576 43613
Blocks:
  Show dependency tree
 
Reported: 2003-09-22 01:05 EDT by mike lueders CLA
Modified: 2003-09-30 09:54 EDT (History)
2 users (show)

See Also:


Attachments
interim patch to cross-test on windows xp (5.77 KB, patch)
2003-09-23 16:33 EDT, Douglas Pollock CLA
no flags Details | Diff
KeySequenceText (5.55 KB, patch)
2003-09-23 16:44 EDT, Douglas Pollock CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mike lueders CLA 2003-09-22 01:05:58 EDT
the available mneumonics (alt-a, alt-d, alt-space) are being intercepted by 
the window, making it impossible to assign these key sequences (possibly 
others, but these are the obvious ones)
Comment 1 Chris McLaren CLA 2003-09-23 15:35:45 EDT
an (already fixed) duplicate for you?
Comment 2 Douglas Pollock CLA 2003-09-23 16:33:12 EDT
Created attachment 6201 [details]
interim patch to cross-test on windows xp

migrating to steve's supported mnemonic suppression.
Comment 3 Douglas Pollock CLA 2003-09-23 16:44:34 EDT
Created attachment 6203 [details]
KeySequenceText

Added comments to the interim patch, and removed code that is truly obsolete. 
This fixes the "Alt+D" and "Alt+A" mnemonic problem, but doesn't seem to
address "Alt+Space".

"Alt+Space" is reserved by Windows XP as a "Display System Menu" key binding. 
Binding it again in Eclipse will have unpredictable results.  In general, I'd
say that this is not a bug, but a feature of the Windows operating system.  :) 
If anyone wants to bind to "Alt+Space", they can do so by copying the text
"Alt+Space" into the clipboard, right-clicking and pasting it into the key
sequence entry widget.

I'll check to see if we have any "Alt+Space" bindings by default, and what kind
of interactions occur between "Alt+Space" in Eclipse and Windows.
Comment 4 Douglas Pollock CLA 2003-09-23 16:50:39 EDT
You can bind to "Alt+Space" using the method described.  It works without any 
bizarre side effects.  I'm going to see if we can provide a more direct entry 
method.
Comment 5 Douglas Pollock CLA 2003-09-23 17:08:33 EDT
There doesn't look to be any obvious way to do allow easy input 
of "Alt+Space".  As it is operating system behaviour, I'm loathe to hack it 
any further than it already is.  None of Eclipse's key bindings 
use "Alt+Space".
Comment 6 Chris McLaren CLA 2003-09-24 08:48:42 EDT
i think changing alt+space would break accesibility - it is the only way to 
move a dialog using the keys. i wouldn't categorize this as a mnemonic key 
just because it starts with alt and is in a dialog. (though maybe swt does 
cateorize it that way.)

personally, i think alt+space should be treated the same as tab and shift+tab -
 important accessibility keys for the dialog (and in general). the copy paste 
works fine for now. in the future we may want to add a mechanism (like a drop 
down menu or context menu cascade menu) to help the user insert these special 
key sequences. in one respect the copy-paste mechanism is nice because its so 
obscure - of course, the counter argument that it sucks for that very reason 
is easy to make.

what about shift-f10 to open context menus in win32 - how does the key 
sequence text widget work in this case?  
Comment 7 Douglas Pollock CLA 2003-09-24 10:52:46 EDT
chris:  apply the patch?  it works, if SWT works (read below)

"Alt+Space" is a window manager event (similar to "Alt+Tab" or "Ctrl+Esc" -- 
see "Help and Support Keyboard Shortcuts" in the help for Windows XP, 
under "Using Help and Support keyboard Shortcuts").

However, SWT does make it available as a mnemonic traversal event.  However, 
they don't allow it to be cancelled right now.  I've filed Bug 43576.  
However, I don't feel that this is high priority (i.e., necessary for M4).  If 
you feel differently, then escalate with Steve...


"Shift+F10" is trapped by the entry widget, and can be used as a key binding 
without adverse effects.


I wonder what happens if you make a widget with "Silly& Mnemonics" as the text?
Comment 8 Chris McLaren CLA 2003-09-24 22:09:55 EDT
patch for 43613 has been applied. please confirm if this fixes some or all of 
the problems here.
Comment 9 Douglas Pollock CLA 2003-09-30 09:54:37 EDT
Word has come back from SWT on Bug 43576.  They have decided to 
block "Alt+Space" key events for consistency between window managers.  This 
key is no longer available on any platform, and hence can't be bound.

The mnemonic problem has already been fixed.

Closing this bug as "fixed"....