Bug 44006 - [Keybindings] Ctrl+Alt+Arrow_* keybindings don't work
Summary: [Keybindings] Ctrl+Alt+Arrow_* keybindings don't work
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-01 11:32 EDT by Markus Keller CLA
Modified: 2008-05-16 13:06 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2003-10-01 11:32:39 EDT
I20030930

Ctrl+Alt+Arrow_Up and Ctrl+Alt+Arrow_Down are assigned by default, but they
don't work. Also no reaction for Ctrl+Alt+Arrow_Left and -_Right.

The keybinding preferences page also doesn't catch them, but with the
context-menu C&P trick, I can see that they are assigned.
Comment 1 Chris McLaren CLA 2003-10-02 11:35:20 EDT
upgrading this, because platform-ui's goal is to eliminate all of these low-
level key bugs for M4.
Comment 2 Douglas Pollock CLA 2003-10-02 12:35:15 EDT
Ah, good.  This isn't my problem.  :)

snippet #25, Ctrl, Alt, Left Arrow, then release in reverse order

From Linux-GTK/GNOME/Metacity:
DOWN: stateMask=0x0, keyCode=0x40000, character=0x0 '\0'
DOWN: stateMask=0x40000 CTRL, keyCode=0x10000, character=0x0 '\0'
DOWN: stateMask=0x50000 CTRL ALT, keyCode=0x1000003, character=0x0 '\0'
UP  : stateMask=0x50000 CTRL ALT, keyCode=0x1000003, character=0x0 '\0'
UP  : stateMask=0x50000 CTRL ALT, keyCode=0x10000, character=0x0 '\0'
UP  : stateMask=0x40000 CTRL, keyCode=0x40000, character=0x0 '\0'
Comment 3 Douglas Pollock CLA 2003-10-02 12:37:29 EDT
From Windows XP:
DOWN: stateMask=0x0, keyCode=0x40000, character=0x0 '\0'
DOWN: stateMask=0x40000 CTRL, keyCode=0x10000, character=0x0 '\0'
UP  : stateMask=0x50000 CTRL ALT, keyCode=0x1000003, character=0x0 '\0'
UP  : stateMask=0x50000 CTRL ALT, keyCode=0x10000, character=0x0 '\0'
UP  : stateMask=0x40000 CTRL, keyCode=0x40000, character=0x0 '\0'


We're missing the key down event on the Windows OS.  This problem does not 
exist in earlier version of SWT (e.g., I20030923).  It must have been 
introduced recently.
Comment 4 Grant Gayed CLA 2003-10-02 12:39:59 EDT
SN, seems to be a result of recent changes.
Comment 5 Douglas Pollock CLA 2003-10-02 15:26:57 EDT
Okay, I was on crack when I suggested an earlier version worked with these 
keys.  I tried 2.1.1, and I can't get bindings to "Ctrl+Alt+Arrow_*" to work 
for the "Next Editor" command (on Windows XP).

However, Microsoft themselves claim to have done it.  Microsoft Visual Studio 
6.0:
    "Table.InsertRowAbove; CTRL + ALT + UP ARROW; Adds one row above the 
     current row in the table. Available only in Design view of the HTML 
     Designer."

Just confirmed on Nick Edgar's machine on Visual Studio C# .NET.  The default 
binding is there, it works, and you can bind to it yourself if you want to.
Comment 6 Steve Northover CLA 2003-10-02 16:02:46 EDT
SSQ, is it time to write a C code example?
Comment 7 Steve Northover CLA 2003-10-06 10:43:14 EDT
Doug, can you confirm that the key sequence is getting fired on key down?
Comment 8 Steve Northover CLA 2003-10-09 17:20:42 EDT
Doug, can you confirm that the key sequence is getting fired on key down in 
Micrsoft Visual Studio 6.0?  Are they firing the accelerator on key up?
Comment 9 Steve Northover CLA 2003-10-22 17:22:14 EDT
Seems to depend on the machine.  For example, the key comes in on Felipe's XP 
box.  Wierd.
Comment 10 Douglas Pollock CLA 2003-10-22 17:36:32 EDT
Steve, if you could tell me how to confirm that MSVisualStudio is processing a 
key down, I'd do it for you.

As for the weirdness between machines ... well, it figures.  <grumble>
Comment 11 Steve Northover CLA 2003-10-22 18:29:52 EDT
Hold the key down, see if something happens right away or when the key is 
released.
Comment 12 Douglas Pollock CLA 2003-10-23 09:44:49 EDT
It appears to work on key down.
Comment 13 Douglas Pollock CLA 2003-10-28 11:53:48 EST
Steve and I confirmed different behaviour between different machines.  My
machine has the following patches: KB820291, KB821253, KB822603, KB823182,
KB824105, KB824141, KB825119, KB826939, KB828035, wm828026, Q327979, Q814995,
Q819696, and service pack 1.  It is running Windows XP, and no key capture
applications that I am aware of.  The ctrl+alt+arrow keys do not work for me.
Comment 14 Steve Northover CLA 2003-10-28 11:59:07 EST
Not sure what to do about this one.  Ideas?  I suppose we could try and figure 
out if the patches matter.  Personally, I'm tempted to close this as WONTFIX 
because I can't see a way to work around it.  We hacked SWT way down deep and 
we simply don't get a Windows WM_ message when the user presses the key.  It 
is either being eaten by Windows or never generated.
Comment 15 Douglas Pollock CLA 2003-10-28 13:49:43 EST
It would be nice to understand the problem, even if we don't fix it (or 
can't).  I'm not sure how much more time I want to spend on this though.

Could you perhaps post the stats on a machine for which the key works?  In 
particular, I have suspicions about the keyboard.  I'm using a plain IBM 
keyboard (doesn't work), while Nick is using one of those ergonomic Microsoft 
keyboards (does work).  For the machines on your team that it does work (or 
doesn't work), is there a particular common factor?
Comment 16 Steve Northover CLA 2004-02-23 13:51:51 EST
Doug, I can't look into this one now.  Feel free to add any information you 
can to the PR.  Thanks.
Comment 17 Markus Keller CLA 2004-02-23 14:11:25 EST
I noticed that Ctrl+Alt+D, Ctrl+Alt+I, Ctrl+Alt+L also don't get through.
However their 'Shift'ed equivalents are fine.

Unfortunately, jEdit also doesn't catch the broken combinations, which makes me
fear that the problem lies in deeper layers than SWT.
Comment 18 Anthony S. Kraievoy CLA 2004-05-19 10:57:50 EDT
The thing does not work for me. I can use Ctrl+alt+left (history back) but I
cannot use Ctrl+alt+right (history forward). 
OKay, I have Windows 2k box, and Genius k627 keyboard. Also I have lots of
hotfixes  installed. I use M8 build with id 200405040800.
Comment 19 Markus Keller CLA 2004-11-17 11:12:02 EST
Bug 68354, comment 2 has a very interesting comment about this:
"The Intel display application (found in the system tray) had the same hotkeys."

When I disable hot keys there, all Shortcuts come to work again (except for
Ctrl+Shift+T, see bug 69303). In the "Intel Graphics Controller Properties"
dialog, I had to uncheck "Enable Hot Keys". That nasty application seems to grab
even more keybindings than those listed in its window!
Comment 20 Ulrich Hobelmann CLA 2008-04-03 05:35:05 EDT
For me neither alt-left, alt-right, ctrl-shift-T and others work (after a while, a restart seems to help).  (running Milestone 6 on WinXP; M5 used to work fine)

Ctrl-W still works, though, interestingly.
Comment 21 Ulrich Hobelmann CLA 2008-05-05 11:21:50 EDT
For the record, my problems from Comment #20 are fixed in M7 (keyboard shortcuts work again).
Comment 22 Steve Northover CLA 2008-05-16 13:06:12 EDT
Ok, we can't stop applications that use Windows hot keys from stealing them away from Eclipse.