Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-02

Escape key in a TActionList?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Massimo Soricetti

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... :-(

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?

Reply by email

Mattias Gaertner
to Massimo Soricetti
Show quoted text 5 lines
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

Reply by email