From 89c98767ba2b38722a3a22bdaf7f93e89c619b23 Mon Sep 17 00:00:00 2001 From: NoriDev Date: Tue, 8 Oct 2024 16:12:49 +0900 Subject: [PATCH] =?UTF-8?q?enhance(frontend):=20=EA=B2=80=EC=83=89?= =?UTF-8?q?=EA=B3=BC=20=EA=B0=99=EC=9D=80=20=EC=9E=85=EB=A0=A5=20=EB=B8=94?= =?UTF-8?q?=EB=A1=9D=EC=97=90=EC=84=9C=20`Enter`=EB=A5=BC=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=ED=95=98=EB=A9=B4=20=EC=9E=90=EB=8F=99=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EA=B0=80=EC=83=81=20=ED=82=A4=EB=B3=B4=EB=93=9C?= =?UTF-8?q?=EB=A5=BC=20=EC=88=A8=EA=B9=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG_CHERRYPICK.md | 1 + packages/frontend/src/components/MkInput.vue | 2 ++ packages/frontend/src/pages/search.event.vue | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG_CHERRYPICK.md b/CHANGELOG_CHERRYPICK.md index 0c4eaaa972..9adeb27b16 100644 --- a/CHANGELOG_CHERRYPICK.md +++ b/CHANGELOG_CHERRYPICK.md @@ -30,6 +30,7 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2024xx](CHANGE ### Client - Enhance: 업데이트 및 마이그레이션 알림에서 CherryPick의 변경 사항만 표시함 +- Enhance: 검색과 같은 입력 블록에서 `Enter`를 입력하면 자동으로 가상 키보드를 숨김 --- diff --git a/packages/frontend/src/components/MkInput.vue b/packages/frontend/src/components/MkInput.vue index 0365efe7f1..bbae511445 100644 --- a/packages/frontend/src/components/MkInput.vue +++ b/packages/frontend/src/components/MkInput.vue @@ -111,6 +111,8 @@ const onKeydown = (ev: KeyboardEvent) => { emit('keydown', ev); if (ev.code === 'Enter') { + focused.value = false; + inputEl.value.blur(); emit('enter', ev); } }; diff --git a/packages/frontend/src/pages/search.event.vue b/packages/frontend/src/pages/search.event.vue index b662fd8340..e4ea887dc9 100644 --- a/packages/frontend/src/pages/search.event.vue +++ b/packages/frontend/src/pages/search.event.vue @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only