Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Any reported problems with OSX SWT key captures?


It is likely we have a bug involving traveral.  The following snippet prints key presses.  Try it on the Mac.

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/snippits/snippet25.html



Jason Vinson <vinson_lists@xxxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

08/22/2003 01:33 PM
Please respond to platform-swt-dev

       
        To:        platform-swt-dev@xxxxxxxxxxx
        cc:        
        Subject:        Re: [platform-swt-dev] Any reported problems with OSX SWT key captures?



(my apologies if this comes through twice.  i sent it from the wrong  
email address, which wasn't subscribed)

Well i am actually working with the viPlugin for eclipse.  The Author  
of it replied to me saying he had received multiple emails about this  
issue, but he doesn't own a mac, so he can't test/debug it.  I looked  
in his code (which works in windows) and saw this:

public void verifyKey(VerifyEvent e) {
//System.out.println("VerifyEvent = " + (int)e.character + ", " +  
e.keyCode + ", " + e.stateMask);
if (mode == INSERTMODE && e.character == SWT.ESC) {
                // close IME window for platform.
                e.display.getActiveShell().setImeInputMode(SWT.NONE);
                e.doit = false;
                switchToCommandMode();
}

As you can gather it is checking to see if the mode is INSERTMODE and  
the key pressed is equivalent to SWT.ESC.  Since this is working  
properly in windows (i haven't checked it in linux just yet), my first  
assumption is that the escape key isn't being captured correctly for  
the mac keyboard.  If you have any suggestions of how to test this or  
have pointers for a better place/list to look, i would appreciate it.

This is in Eclipse 2.1.1 by the way.

Thanks,
Jason

On Friday, August 22, 2003, at 12:44 PM, Steve Northover wrote:

> Not that I know of. How about a snippet?  Is the problem already fixed?
> Lots of work happened on the Mac between 2.0 and 2.1 so you might get
> lucky!
>
>
>
> |---------+---------------------------------->
> |         |           Jason Vinson           |
> |         |           <vinson_lists@earthlink|
> |         |           .net>                  |
> |         |           Sent by:               |
> |         |           platform-swt-dev-admin@|
> |         |           eclipse.org            |
> |         |                                  |
> |         |                                  |
> |         |           08/22/2003 11:00 AM    |
> |         |           Please respond to      |
> |         |           platform-swt-dev       |
> |         |                                  |
> |---------+---------------------------------->
>> ----------------------------------------------------------------------
>> -----------------------------------------------------|
>   |                                                                    

>                                                        |
>   |       To:       platform-swt-dev@xxxxxxxxxxx                        
>                                                        |
>   |       cc:                                                          
>                                                        |
>   |       Subject:  [platform-swt-dev] Any reported problems with OSX  
> SWT key captures?                                       |
>   |                                                                    
>                                                        |
>> ----------------------------------------------------------------------
>> -----------------------------------------------------|
>
>
>
>
> I am looking into a potential bug for a plugin, and it relates to
> capturing the ESC key in mac OSX.  I wanted to check with you folks to
> see if there have been any issues raised about using SWT.ESC to relate
> to the escape key specifically on mac OSX (the escape key works fine in
> windows world).
>
> Thanks,
> Jason
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
>
>
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>



Back to the top