laptop and a wrench

漏洞

Key tips do not work as expected with the buttons that are within the Menu element in ArcGIS Pro SDK for .NET.

ArcGIS Pro SDK for .NET
漏洞 ID 编号 BUG-000157374
已提交April 10, 2023
上次修改时间June 5, 2024
适用范围ArcGIS Pro SDK for .NET
找到的版本3.1
操作系统N/A
操作系统版本N/A
状态As Designed

附加信息

In order to see the correct menu access keys, the button definitions need to be updated with the menuKeytip attribute. Menu access keys are the underlined characters that allow for single-key execution of a button that appears in a menu. These menus can be a context menu in the application, or a menu item hosted on the ribbon. ArcGIS Pro 3.1 provides a new way to define the character to use for the menu access key. Use the menuKeytip attribute to define the menu access key for a button. menuKeytip values are limited to a single character. Key tips are the square overlays that appear when pushing the Alt key on the keyboard. They only appear on the Ribbon and Quick Access Toolbar. See the 'Use keyboard shortcuts on the ribbon' section in this documentation topic: https://pro.arcgis.com/en/pro-app/latest/get-started/keyboard-shortcuts.htm#ESRI_SECTION1_9F08B79C667144B0BB3FE893D936C22B To control the key tip for a button, use the key tip attribute. Unlike menuKeytip, the key tip value can have more than one character. The key tip value is used when the button shows inside a ribbon group or gallery. Some buttons may appear on both the ribbon and inside menus. These cases can be handled by defining both key tip and menuKeytip in the button element. When the button appears on the ribbon surface, the key tip definition is used. When it appears in a menu, the access key comes from menuKeytip.

解决办法

If Japanese is used with 'caption', it needs to be modified as below (add the (Y) after the caption name), and the keytips work as expected.

<button id="RibbonControls_Menu1_Items_Button3" caption="数値地図 (国土基本情報) のインポート (Q)" keytip="XV" className="Menu1_button3" loadOnClick="true" smallImage="Images\GenericButtonGreen16.png" largeImage="Images\GenericButtonGreen32.png">

     <tooltip heading="数値地図 (国土基本情報) のインポート">Menu Button 3 ToolTip<disabledText /></tooltip>

重现步骤

漏洞 ID: BUG-000157374

软件:

  • ArcGIS Pro SDK for .NET

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项