Sign in Join

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

Mailing lists / lazarus / 2015-07

Action shortcuts vs Menu Item shortcuts

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

Which one is supposed to take priority? I have menu item with an associated TAction. The Action has a shortcut associated with it. I then set a new shortcut via the Menu Item -> Shortcut property, but this new menu item shortcut never seems to work. Only the shortcut from the Action.

Do the properties of Actions always take precedence over the properties of a Menu Item?

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Do the properties of Actions always take precedence over the properties of a Menu Item?

I should add that the actual Menu Item (at runtime) shows the shortcut I set in "Menu Item -> Shortcuts" in the Object Inspector, and not the Action.shortcut. Because of this, I would have expected the Menu Item's shortcut to override the Action's shortcut. But it doesn't.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 8 lines
On 2015-07-13 16:08, Graeme Geldenhuys wrote: > Do the properties of Actions always take precedence over the properties > of a Menu Item? I should add that the actual Menu Item (at runtime) shows the shortcut I set in "Menu Item -> Shortcuts" in the Object Inspector, and not the Action.shortcut. Because of this, I would have expected the Menu Item's shortcut to override the Action's shortcut. But it doesn't.

This is normal. Action properties should always take precedence.

Michael.

Reply by email