Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Delete Key keyCode on Mac not SWT.DEL?
|
Re: Delete Key keyCode on Mac not SWT.DEL? [message #438218 is a reply to message #438117] |
Thu, 17 June 2004 15:44 |
Steve Northover Messages: 1636 Registered: July 2009 |
Senior Member |
|
|
WORKSFORME. In the 3.0 stream on the Mac,
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/snippits/snippet25.html
gives:
DOWN: stateMask=0x0, keyCode=0x7f DEL, character=0x7f DEL
UP : stateMask=0x0, keyCode=0x7f DEL, character=0x7f DEL
"Benjamin Pasero" <bpasero@rssowl.org> wrote in message
news:capr4f$n2j$1@eclipse.org...
> Hi,
>
> I've added a KeyListener to a tree listening for SWT.CR and SWT.DEL. On
> Mac pressing Enter, the event is triggered for SWT.CR. That's ok. But
> pressing the delete key the keycode does not seem to be SWT.DEL.
> Unfortunately I am not able to test that, just got someone that reported
> this problem.
>
> Any suggestions? Is it a different keycode on Mac?
>
> Regards,
> Ben
>
|
|
|
Re: Delete Key keyCode on Mac not SWT.DEL? [message #438225 is a reply to message #438218] |
Thu, 17 June 2004 16:33 |
Benjamin Pasero Messages: 337 Registered: July 2009 |
Senior Member |
|
|
Hm, maybe it has something to do with how I listen for the event. I am
using
Tree.addKeyListener listening for keyPressed event and comparing e.keyCode
to SWT.DEL. As I mentioned, Enter Key is catched by this code, Del is not.
But maybe its the Mac user that did something wrong, I am going to ask him
again.
Thanks,
ben
> WORKSFORME. In the 3.0 stream on the Mac,
>
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/snippits/snippet25.html
> gives:
> DOWN: stateMask=0x0, keyCode=0x7f DEL, character=0x7f DEL
> UP : stateMask=0x0, keyCode=0x7f DEL, character=0x7f DEL
> "Benjamin Pasero" <bpasero@rssowl.org> wrote in message
> news:capr4f$n2j$1@eclipse.org...
> > Hi,
> >
> > I've added a KeyListener to a tree listening for SWT.CR and SWT.DEL. On
> > Mac pressing Enter, the event is triggered for SWT.CR. That's ok. But
> > pressing the delete key the keycode does not seem to be SWT.DEL.
> > Unfortunately I am not able to test that, just got someone that reported
> > this problem.
> >
> > Any suggestions? Is it a different keycode on Mac?
> >
> > Regards,
> > Ben
> >
|
|
| | | | | |
Goto Forum:
Current Time: Wed May 08 04:21:47 GMT 2024
Powered by FUDForum. Page generated in 0.03383 seconds
|