Skip to content

fix(one-click-pr-or-gist): attach Mod+Enter hotkey to primary action button - #9899

Closed
Abhirup0 wants to merge 3 commits into
refined-github:mainfrom
Abhirup0:fix-one-click-pr-shortcut
Closed

Abhirup0 wants to merge 3 commits into
refined-github:mainfrom
Abhirup0:fix-one-click-pr-shortcut

Conversation

@Abhirup0

Copy link
Copy Markdown

Fixes #9501

Description

When creating a PR with one-click-pr-or-gist enabled, submitting via Cmd+Enter / Ctrl+Enter triggered a different submission path than standard Enter if the draft radio option was default in native UI.

Adding data-hotkey="Mod+Enter" explicitly to the unrolled primary button ensures Cmd+Enter always targets the primary action consistently with Enter.

Test URLs

refined-github/sandbox@default-a...fregante-patch-1

@github-actions github-actions Bot added the bug label Jul 29, 2026
@github-actions github-actions Bot changed the title fix(one-click-pr-or-gist): attach Mod+Enter hotkey to primary action button fix(one-click-pr-or-gist): attach Mod+Enter hotkey to primary action button Jul 29, 2026
@fregante

Copy link
Copy Markdown
Member

Thanks for looking into this. I tried a number of times in Chrome and Safari and I'm unable to replicate the original issue. I assume that it was a GitHub issue that has since been fixed. For that reason I'm closing this PR and original issue

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

Labels

Development

Successfully merging this pull request may close these issues.

one-click-pr-or-gist varies default by enter vs cmd-enter

2 participants