Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
Changed submit shortcut to Ctrl + Enter
Browse files Browse the repository at this point in the history
  • Loading branch information
recoskyler committed Apr 24, 2023
1 parent bc47fce commit 2ba9b0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
aria-label="Prompt"
on:input={(e) => (prompt = e.currentTarget.value.trim())}
on:keyup={(e) => {
if (e.key === "Enter" && e.shiftKey) {
if (e.key === "Enter" && e.ctrlKey) {
submitPrompt();

e.currentTarget.value = "";
Expand Down Expand Up @@ -394,7 +394,7 @@
</div>
</div>
<span class="input-hint">
Press <kbd>Shift</kbd> + <kbd>Enter</kbd> to submit.
Press <kbd>Ctrl</kbd> + <kbd>Enter</kbd> to submit.
</span>
</div>
</div>
Expand Down

0 comments on commit 2ba9b0a

Please sign in to comment.