Skip to content

cmd-enter - Add visible shortcut #9494

Closed as not planned
Closed as not planned

Description

@fregante

Description

New forms display the shortcut in the button itself:

Image

We should do the same in cmd-enter (#9324)

Also, potentially extending this feature, we can add this visible shortcut to all native buttons that support the shortcut but don't display it.

Example URLs

refined-github/sandbox#22

Activity

  1. fregante commented on May 17, 2026

    @fregante
    MemberAuthor

    Side note, found a GitHub bug unrelated to our feature (and not worth fixing). I'm just documenting it here so you don't have to.

    1. Visit closed PR with deleted branch
    2. Leave comment
    3. See "Reopen and comment" button become enabled, even if you cannot reopen the PR
    Image
  2. fregante commented on May 17, 2026

    @fregante
    MemberAuthor

    We have a helper to pick the right mod key in

    export const modKey = isMac ? 'cmd' : 'ctrl';

    Windows:

    Image

    now we need a helper to select the right character as well. I think ctrl is clearer than whatever GitHub is using though 😬

    const icon = isMac ? '⌘' : 'Ctrl';
  3. fregante commented on Jun 8, 2026

    @fregante
    MemberAuthor

    meh, not that useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions