StyledText End key no keyDown event [message #455149] |
Fri, 06 May 2005 21:53 |
Eclipse User |
|
|
|
Originally posted by: bob.objfac.com
When StyledText is in focus the End key (keypad-1 on my keyboard)
doesn't produce a keydown event. Same for PgDn (keypad-3). Home and PgUp do.
This makes it hard to filter these key presses.
Running WinXP Eclipse 3.1M5a.
What gives?
Bob
|
|
|
Re: StyledText End key no keyDown event [message #455152 is a reply to message #455149] |
Sat, 07 May 2005 15:25 |
Eclipse User |
|
|
|
Originally posted by: bob.objfac.com
For some reason, the End key is coming in as a WM_COMMAND instead of a
WM_KEYDOWN, whereas Home is the opposite. Is this an SWT bug?
Bob
Bob Foster wrote:
> When StyledText is in focus the End key (keypad-1 on my keyboard)
> doesn't produce a keydown event. Same for PgDn (keypad-3). Home and PgUp
> do.
>
> This makes it hard to filter these key presses.
>
> Running WinXP Eclipse 3.1M5a.
>
> What gives?
>
> Bob
|
|
|
Re: StyledText End key no keyDown event [message #455153 is a reply to message #455152] |
Sat, 07 May 2005 17:23 |
Eclipse User |
|
|
|
Originally posted by: bob.objfac.com
Oh, I see. This is an understanding bug. ;-} Accelerator keys in menu
items come through as commands.
The reason Home came through as a keystroke was apparently because Home
menu item was disabled. Since this determination was made before any
event was received by the control, it seems to mean that menu items with
accelerators can't depend on a MenuListener.menuShown() call to lazily
enable the item. Guess my MacOS 9 intuition isn't working so well.
Probably should get Steve N's book. ;-}
Bob
Bob Foster wrote:
> For some reason, the End key is coming in as a WM_COMMAND instead of a
> WM_KEYDOWN, whereas Home is the opposite. Is this an SWT bug?
>
> Bob
>
> Bob Foster wrote:
>
>> When StyledText is in focus the End key (keypad-1 on my keyboard)
>> doesn't produce a keydown event. Same for PgDn (keypad-3). Home and
>> PgUp do.
>>
>> This makes it hard to filter these key presses.
>>
>> Running WinXP Eclipse 3.1M5a.
>>
>> What gives?
>>
>> Bob
|
|
|
Powered by
FUDForum. Page generated in 0.02813 seconds