function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pjaenickepjaenicke 

Assign a control-key to a Button

Greetings,

 

Is it possible to assign a control-key to a custom button? 

 

(Use-case:  User has a long form - rather than scroll up or down to find the [Save] button, I can give them a [Ctrl-S] (or equivalent) to invoke the [Save] process).

 

Thanks,

Pete

DharmeshDharmesh

You can use accesskey attribute of the command button. 

The keyboard access key that puts the command button in focus. String
When the command button is in focus, pressing the Enter key is
equivalent to clicking the button.

The keyboard access key that puts the command button in focus. When the command button is in focus, pressing the Enter key isequivalent to clicking the button.