[Lazarus] Escape key in a TActionList?

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Feb 1 22:47:25 CET 2012


On Wed, 01 Feb 2012 22:27:46 +0100
Massimo Soricetti <notturno at quipo.it> wrote:

> I would like to bind the escape key as a shortcut for an action in a 
> TActionList, but seems I can't do it.
> The esc key is not on the list of the allowed shortcuts and the "grab a 
> key" function terminates when I press the "Esc", obviously not getting 
> the Esc key... :-(

The grab key uses escape to cancel.
I added VK_ESCAPE to the list.

 
> Is there any way to bind "Esc" as keyboard shortcut for an action? If 
> there isn't, what is the keycode for escape? VK_ESCAPE?

That's a bingo.

Mattias






More information about the Lazarus mailing list