From 2b760e39959efca4af3317fba26d922d9b8c768a Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Sat, 20 Feb 2021 13:06:02 +0100 Subject: [PATCH] UX: Set autofocus for input fields and confirm on enter #1078 --- frontend/src/dialog/account/add.vue | 3 +-- frontend/src/dialog/account/edit.vue | 4 ++-- frontend/src/dialog/album/edit.vue | 3 ++- frontend/src/dialog/photo/album.vue | 2 ++ frontend/src/pages/settings/account.vue | 2 +- frontend/src/pages/settings/sync.vue | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/frontend/src/dialog/account/add.vue b/frontend/src/dialog/account/add.vue index 862c9d94a..5cbe7345c 100644 --- a/frontend/src/dialog/account/add.vue +++ b/frontend/src/dialog/account/add.vue @@ -13,8 +13,7 @@ diff --git a/frontend/src/dialog/photo/album.vue b/frontend/src/dialog/photo/album.vue index 1deaa3629..d01213f35 100644 --- a/frontend/src/dialog/photo/album.vue +++ b/frontend/src/dialog/photo/album.vue @@ -16,12 +16,14 @@ :loading="loading" hide-details hide-no-data + autofocus item-text="Title" item-value="UID" :label="$gettext('Album Name')" color="secondary-dark" flat solo class="input-album" + @keyup.enter.native="confirm" > diff --git a/frontend/src/pages/settings/account.vue b/frontend/src/pages/settings/account.vue index 92db8c2a0..c5a1387f5 100644 --- a/frontend/src/pages/settings/account.vue +++ b/frontend/src/pages/settings/account.vue @@ -7,7 +7,7 @@ -