Lisp HUG Maillist Archive

Escape key in text-input-pane on Windows

Hi,

I have a text-input-pane, which I want to react to the Escape key. Adding

:gesture-callbacks (list (cons #\Escape (lambda (pane) ... )))

works on Mac, but not on Windows. Is there any way to catch the Escape key on Windows?

Erik


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: Escape key in text-input-pane on Windows

Erik,

I’m guessing that you want to use the escape key to clear out the pane (is it being used as a search field)?

Anyway, I’ve never been able to get this to work in my applications. If it is a kind of search field, then what I’ve always done is making an “Edit->Clear” menu item that does it. Funny, though, for Windows, you can use #\escape as the :accelerator for the menu item, but on OS X you can’t, so I just leave it blank on OS X and let the pane control handle it.

Sorry I didn’t have a better solution for you. :-(

Jeff M.


> On Nov 26, 2014, at 5:06 PM, Erik Ronström <erik.ronstrom@doremir.com> wrote:
> 
> 
> Hi,
> 
> I have a text-input-pane, which I want to react to the Escape key. Adding
> 
> :gesture-callbacks (list (cons #\Escape (lambda (pane) ... )))
> 
> works on Mac, but not on Windows. Is there any way to catch the Escape key on Windows?
> 
> Erik
> 
> 
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html
> 


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Updated at: 2020-12-10 08:33 UTC