From 1ec227d9261026d5e32bded8d9c97dd3a5957359 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Sat, 7 May 2022 01:15:58 +0200 Subject: [PATCH] Make TagAddButton focusable and simulate click on focus (#1838) --- .../tag-editor/tag-options-button/TagAddButton.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ts/editor/tag-editor/tag-options-button/TagAddButton.svelte b/ts/editor/tag-editor/tag-options-button/TagAddButton.svelte index 7a512bda1..45c71a5c3 100644 --- a/ts/editor/tag-editor/tag-options-button/TagAddButton.svelte +++ b/ts/editor/tag-editor/tag-options-button/TagAddButton.svelte @@ -13,13 +13,19 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html const dispatch = createEventDispatcher<{ tagappend: CustomEvent }>(); + function appendTag() { + dispatch("tagappend"); + } + const keyCombination = "Control+Shift+T";
dispatch("tagappend")} + tabindex={0} + on:click={appendTag} + on:focus={appendTag} > {@html tagIcon}