Skip to content

Add Ctrl+Shift+F5 key binding to run code in editor - #7

Merged
N-ha-1050 merged 3 commits into
mainfrom
copilot/add-f5-key-execution
May 3, 2026
Merged

Add Ctrl+Shift+F5 key binding to run code in editor#7
N-ha-1050 merged 3 commits into
mainfrom
copilot/add-f5-key-execution

Conversation

Copilot AI commented May 3, 2026

Copy link
Copy Markdown
Contributor

The editor supported running code via Ctrl+Shift+E / Command+Shift+E but lacked an additional keyboard shortcut. This adds Ctrl+Shift+F5 (Command+Shift+F5 on Mac) as an alternative way to run code, avoiding conflict with the browser's built-in F5 page refresh shortcut.

Changes

  • src/editor.ts: Adds a new runCodeCtrlShiftF5 command binding Ctrl+Shift+F5 to the existing run function — existing runCode command is untouched
{
  name: "runCodeCtrlShiftF5",
  bindKey: { win: "Ctrl-Shift-F5", mac: "Command-Shift-F5" },
  exec: run,
},

Copilot AI linked an issue May 3, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add F5 key execution functionality in editor Add F5 key binding to run code in editor May 3, 2026
Copilot AI requested a review from N-ha-1050 May 3, 2026 17:57

@N-ha-1050 N-ha-1050 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot F5 はブラウザ本体のショートカットであるページの更新と競合するので Ctrl + Shift + F5 に変更してください

Copilot AI commented May 3, 2026

Copy link
Copy Markdown
Contributor Author

@copilot F5 はブラウザ本体のショートカットであるページの更新と競合するので Ctrl + Shift + F5 に変更してください

Changed the binding to Ctrl+Shift+F5 (commit 8aa7a1e). Also renamed the command from runCodeF5 to runCodeCtrlShiftF5 to match the actual shortcut.

Copilot AI changed the title Add F5 key binding to run code in editor Add Ctrl+Shift+F5 key binding to run code in editor May 3, 2026
Copilot AI requested a review from N-ha-1050 May 3, 2026 18:29
@N-ha-1050
N-ha-1050 marked this pull request as ready for review May 3, 2026 18:30

@N-ha-1050 N-ha-1050 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot LGTM

@N-ha-1050
N-ha-1050 merged commit 670c125 into main May 3, 2026
2 checks passed
@N-ha-1050
N-ha-1050 deleted the copilot/add-f5-key-execution branch May 3, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

F5 キーでの実行

2 participants