Shortcut to button in the ribbon

149
2
Jump to solution
11-29-2023 09:33 AM
Daniel4
New Contributor II

Hi, I made this button in the ribbon turning feature layer on/off:

Daniel4_0-1701276840498.png

Is it possible to add a shortcut to the button, so the user can user the keyboard?

0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri Regular Contributor

Hi,

Open your project config.daml file. Locate your button. Check for daml attribute "keytip". If it doesn't exist, add.

        <button id="AddInInfoManager_ShowDamlVersion" caption="ShowDamlVersion" className="ShowDamlVersion" loadOnClick="true" smallImage="Images\GenericButtonBlue16.png" largeImage="Images\GenericButtonBlue32.png" keytip="B1">
          <tooltip heading="Tooltip Heading">Tooltip text<disabledText /></tooltip>
        </button>

More info about button attributes here

View solution in original post

0 Kudos
2 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

Open your project config.daml file. Locate your button. Check for daml attribute "keytip". If it doesn't exist, add.

        <button id="AddInInfoManager_ShowDamlVersion" caption="ShowDamlVersion" className="ShowDamlVersion" loadOnClick="true" smallImage="Images\GenericButtonBlue16.png" largeImage="Images\GenericButtonBlue32.png" keytip="B1">
          <tooltip heading="Tooltip Heading">Tooltip text<disabledText /></tooltip>
        </button>

More info about button attributes here

0 Kudos
Daniel4
New Contributor II

Great 🙂

That worked. 

 

0 Kudos