Skip to content

Commit

Permalink
🩹 Add enter shortcut to name screen on welcome page
Browse files Browse the repository at this point in the history
  • Loading branch information
hkamran80 authored Oct 26, 2021
1 parent 6f3321d commit 6acd3ef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion client/pages/welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@
<h1>Your own WebCrate</h1>
<p>This is your own instance of WebCrate. Give it a name to make it yours!</p>
<hr>
<input v-model="name" v-focus class="input" placeholder="Maxi's WebCrate" />
<input
v-model="name"
v-focus
v-shortkey="['enter']"
class="input"
placeholder="Maxi's WebCrate"
@shortkey="saveName"
/>
<div class="info">
<Icon name="info" />
<p>You can always change this later</p>
Expand Down

0 comments on commit 6acd3ef

Please sign in to comment.