diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index 08cd11ec..a55b31e3 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -19,6 +19,7 @@ type="text" autocomplete="username" v-focus + @keyup.enter="submit" /> @@ -34,6 +35,7 @@ required type="password" autocomplete="current-password" + @keyup.enter="submit" /> @@ -48,6 +50,7 @@ required type="text" v-focus + @keyup.enter="submit" /> diff --git a/src/views/user/Register.vue b/src/views/user/Register.vue index 5d200a2a..81521c7f 100644 --- a/src/views/user/Register.vue +++ b/src/views/user/Register.vue @@ -15,7 +15,9 @@ type="text" autocomplete="username" v-focus - v-model="credentials.username"/> + v-model="credentials.username" + @keyup.enter="submit" + />