How can I assign a specific keyboard key for my command, like for example how can I assign a key for show all records.
In FileMaker Advanced, you can set up custom functions. They include the option to assign a key for selecting that menu option--such as Show All Records. There are limitations. Many keys have assigned functions that cannot be overridden by your own choices.
You can also use the OnObjectKeystroke and OnLayoutKeystroke triggers to perform scripts. The get ( TriggerKeystroke ) and Get ( TriggerModifierKeys ) can be used in these scripts to identify both the key and the modifier key that tripped the trigger so you might set up a script to be performed by a keystroke as well.
I think it might be best to refer to "Custom menus" rather than custom functions, since the term "Custom functions" usually relate to something else ;-)
Correct. For some reason, I wrote custom function when I meant custom menu....
Is this for a solution you are making for others, or as a tool for yourself?
If it's just for yourself you could look at getting some macro keys, e.g. a keyboard with lots of extra macro keys or an X-Keys usb plugin ( P.I. Engineering Home Page )
An alternative way via MBS FileMaker Plug-ins would be to use HotKey functions.
And than use it to run a calculation on keydown and use Menubar.RunMenuCommand function to trigger a menu command in FileMaker. Like we did for TouchBar.
show all records has always been ⌘-J
Besides that, if you're on a Mac, you might find the following picture self-explaining.
Retrieving data ...