Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » StyledText End key no keyDown event
StyledText End key no keyDown event [message #455149] Fri, 06 May 2005 21:53 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Table and deprecated setImageIndent
Next Topic:buttons on windows platform
Goto Forum:
  


Current Time: Thu Apr 25 04:48:16 GMT 2024

Powered by FUDForum. Page generated in 0.02813 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top