Jump to content
Jeff Steinkamp

TMainMenu shortcut key not working

Recommended Posts

I'm somewhat baffled with this one.  New VCL application created with Delphi 11 community.  Most menu items have a short cut key assigned.  New (CTRL-N), Open (CTRL-O),  Exit (CTRL-E), etc.  the OnClick event of each menu item has an assigned handler.   Clicking the menu item launches the handler.  However, taping the shortcut key does not.  Is there something hidden is some obscure configuration that is prevent this?  Never had this problem with any of the applications I've developed using 10.4.  I did open an application I recently developed in 10.4 with 11 and added some short cut keys to the menu and those are working fine.    I must be missing something here.  Any ideas?

Share this post


Link to post

I think I have this figure out.  If the forms BorderStyle property is set to bdDialog, then short-cut keys do not work.  I'm not sure if this is intended behavior or a bug.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×