From adfe6597a59658564e6f2d757e39d0e6df4a63da Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 5 Jul 2021 18:15:03 +0200 Subject: [PATCH] disabledKey => fieldFocusedKey --- ts/components/IconButton.svelte | 1 - ts/components/LabelButton.svelte | 10 +++------- ts/components/SelectButton.svelte | 10 +++------- ts/components/context-keys.ts | 1 - ts/editor/ClozeButton.svelte | 26 +++++++++++--------------- ts/editor/NoteTypeButtons.svelte | 2 -- ts/editor/OnlyEditable.svelte | 7 +++---- ts/editor/PreviewButton.svelte | 1 - ts/editor/TemplateButtons.svelte | 27 ++++++++++++--------------- ts/editor/codable.ts | 4 ++-- ts/editor/context-keys.ts | 1 + ts/editor/editable.ts | 4 ++-- ts/editor/focus-handlers.ts | 6 +++--- ts/editor/index.ts | 6 +++--- ts/editor/toolbar.ts | 26 +++++--------------------- 15 files changed, 48 insertions(+), 84 deletions(-) diff --git a/ts/components/IconButton.svelte b/ts/components/IconButton.svelte index d64bdded0..300a551eb 100644 --- a/ts/components/IconButton.svelte +++ b/ts/components/IconButton.svelte @@ -14,7 +14,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html export let tooltip: string | undefined = undefined; export let active = false; export let disabled = false; - export const disables = false; /* unused */ export let tabbable = false; export let iconSize: number = 75; diff --git a/ts/components/LabelButton.svelte b/ts/components/LabelButton.svelte index 2a7326d68..3a26df785 100644 --- a/ts/components/LabelButton.svelte +++ b/ts/components/LabelButton.svelte @@ -3,9 +3,8 @@ Copyright: Ankitects Pty Ltd and contributors License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html --> - - - - {@html ellipseIcon} - - - + + + {@html ellipseIcon} + + diff --git a/ts/editor/NoteTypeButtons.svelte b/ts/editor/NoteTypeButtons.svelte index 4017464bd..ce4f6fc70 100644 --- a/ts/editor/NoteTypeButtons.svelte +++ b/ts/editor/NoteTypeButtons.svelte @@ -17,7 +17,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html bridgeCommand("fields")} > @@ -28,7 +27,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html bridgeCommand("cards")} on:mount={createShortcut} diff --git a/ts/editor/OnlyEditable.svelte b/ts/editor/OnlyEditable.svelte index 1dac48d73..25d08beb7 100644 --- a/ts/editor/OnlyEditable.svelte +++ b/ts/editor/OnlyEditable.svelte @@ -4,12 +4,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html --> - + - + diff --git a/ts/editor/PreviewButton.svelte b/ts/editor/PreviewButton.svelte index 6f1f0a198..f5edfa4e0 100644 --- a/ts/editor/PreviewButton.svelte +++ b/ts/editor/PreviewButton.svelte @@ -13,7 +13,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html bridgeCommand("preview")} on:mount={createShortcut} > diff --git a/ts/editor/TemplateButtons.svelte b/ts/editor/TemplateButtons.svelte index 693a7b4b7..245e41a13 100644 --- a/ts/editor/TemplateButtons.svelte +++ b/ts/editor/TemplateButtons.svelte @@ -5,8 +5,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html