Yes,
I do think it should be ok for shell, but for widget like styledtext, it seems that
combination like CTRL+C will be interpreted.
From:
platform-swt-dev-admin@xxxxxxxxxxx [mailto:platform-swt-dev-admin@xxxxxxxxxxx] On Behalf Of Steve Northover
Sent: Tuesday, June 01, 2004 9:19
PM
To: platform-swt-dev@xxxxxxxxxxx
Subject: RE: [platform-swt-dev]
the Control key on StyledText
This is what I get running
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/snippits/snippet25.html
on Windows:
DOWN: stateMask=0x0, keyCode=0x40000 CONTROL,
character=0x0 '\0'
DOWN: stateMask=0x40000 CTRL, keyCode=0x74 't',
character=0x14 ''
UP : stateMask=0x40000 CTRL, keyCode=0x74 't',
character=0x14 ''
UP : stateMask=0x40000 CTRL, keyCode=0x40000
CONTROL, character=0x0 '\0'
DOWN: stateMask=0x0, keyCode=0x40000 CONTROL,
character=0x0 '\0'
DOWN: stateMask=0x40000 CTRL, keyCode=0x63 'c',
character=0x3 '
'
UP : stateMask=0x40000 CTRL, keyCode=0x63 'c',
character=0x3 '
'
UP : stateMask=0x40000 CTRL, keyCode=0x40000
CONTROL, character=0x0 '\0'
It looks right to me for both Ctrl+c and Ctrl+t. Are
you on another platform, other than Windows?
"Jiang,
Yunhong" <yunhong.jiang@xxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
06/01/2004 02:10 AM
Please
respond to
platform-swt-dev
|
|
To
|
<platform-swt-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
|
RE: [platform-swt-dev] the
Control key on StyledText
|
|
Steve
I have tried this issue again and find that it seems
not all ctrl+letter failed. When I try input ctrl+”R” or
CTRL+”T”, it really success, that is, the event.character is 0x12
or 0x14 now , with the statemask is SWT.CTRL. So I think the reason some ctrl +
letter fail is because it is already interpreted by high level operation, so
could we clarify this before I submit this to bugzilla?
Thanks
Yunhong Jiang
From:
platform-swt-dev-admin@xxxxxxxxxxx [mailto:platform-swt-dev-admin@xxxxxxxxxxx] On Behalf Of Steve Northover
Sent: Monday, May 31, 2004 10:04 PM
To: platform-swt-dev@xxxxxxxxxxx
Subject: Re: [platform-swt-dev] the Control key on StyledText
Please enter a bugzilla report and indicate the platform. Thanks.
"Jiang,
Yunhong" <yunhong.jiang@xxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
05/30/2004 12:31 AM
Please
respond to
platform-swt-dev
|
|
To
|
<platform-swt-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
|
[platform-swt-dev] the
Control key on StyledText
|
|
I append verifyKeyListener to a StyledText widget to get to know when
use press Ctrl +c and Ctrl +d
When I push Ctrl with another key pressed, eg. The CTRL + d, the
verifyKey got only the following: character :0 keycode 262144 master 0;
However, I try push ALT with another key pressed, eg ALT+d, the
verifykey got the result of :character: d, keycode: 0, master :65536
So I want to know how can I got to know user have pressed Ctrl + another
key?
Thanks
Yunhong Jiang
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev