Skip to content

Menu item accelerator does not get set for f1-f12 keys #17362

Open

Description

@PankajBhojwani

Windows Terminal version

No response

Windows build number

No response

Other Software

No response

Steps to reproduce

You need a build of terminal that has #17281 in it to repro this

  • Add an action to your new tab dropdown with f1 as the keybinding
  • Open the new tab dropdown
  • The action shows up, but the accelerator does not (there should be an accelerator that says the keybinding is f1)

Example json snippet to test this:

"keybindings": [
        {
            "id": "Terminal.CopyToClipboard",
            "keys": "f1"
        }
],
    "newTabMenu": 
    [
        {
            "type": "action",
            "id": "Terminal.CopyToClipboard"
        }
    ],

Preliminary investigation shows that MapVirtualKeyW (called in TerminalPage::_SetAcceleratorForMenuItem) returns 0 for any of the keys f1 through f12, and that's the issue

Expected Behavior

Accelerator should show up with f1 in it

Actual Behavior

There is no accelerator

Activity

  1. added
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Jun 4, 2024
  2. lhecker commented on Jun 5, 2024

    @lhecker
    Member

    Something like the quake mode keybinding with its scancode should have similar issues, but for a different reason, right? Also, don't we need to show the strings in the command palette too? Maybe we should make it a property of KeyChord so we don't have to do it twice.

  3. added
    Area-UserInterfaceIssues pertaining to the user interface of the Console or Terminal
    and removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIssue-BugIt either shouldn't be doing this or needs an investigation.Product-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions