web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Cannot add keyboard shortcut to button

(0) ShareShare
ReportReport
Posted on by 555

Hi experts,

I have made an extension for Business Central cloud.

I would like to add a shortcut key to the "Print Confirmatiton" on the sales order page, but when I try to add the shortcut key "Shift-Ctrl-B", it shows or removes the favourites toolbar in Google Chrome, that I use, when I press it. As I understand https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-shortcutkey-property the Business Central shortcuts should be activated instead of the ones in the browser.

The tooltip gets "(Shift-Ctrl-b)" in the end - with a small "b". That's also weird.

Also I have a new button that I would like to be activated by Shift-Ctrl-F. When I try that, nothing happens and the tooltip does not show the shortcut key.

Here is my code:

pageextension 50124 SalesOrder extends "Sales Order"
{
    actions
    {
        modify("Print Confirmation")
        {
            ShortcutKey = 'Shift-Ctrl-B';
        }

        addafter(AttachAsPDF)
        {
            action(PrintSomething)
            {
                ApplicationArea = All;
                Caption = 'Print something';
                Image = Production;

                Promoted = true;
                PromotedCategory = Category11;
                ToolTip = 'something';
                ShortcutKey = 'Shift-Ctrl-F';

                trigger OnAction()
                begin
                    ...
                end;
            }
        }
    }
}
I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Cannot add keyboard shortcut to button

    Thank you for sharing final solution.

  • Verified answer
    Morten Steengaard Profile Picture
    555 on at
    RE: Cannot add keyboard shortcut to button

    The solution was to use "Shift+Ctrl+B" instead of "Shift-Ctrl-B".

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,678 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,635

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,210

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans