From 1662ff440bb3572954fbe2cc190d4916243960fe Mon Sep 17 00:00:00 2001 From: Abdo Date: Fri, 25 Jul 2025 14:43:33 +0300 Subject: [PATCH] Set a different shortcut for Mac --- ts/routes/editor/HistoryButton.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/routes/editor/HistoryButton.svelte b/ts/routes/editor/HistoryButton.svelte index 5a07cc8d6..2e2a47086 100644 --- a/ts/routes/editor/HistoryButton.svelte +++ b/ts/routes/editor/HistoryButton.svelte @@ -10,10 +10,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import type { HistoryEntry } from "./types"; import Icon from "$lib/components/Icon.svelte"; import { caretDownFill } from "$lib/components/icons"; + import { isApplePlatform } from "@tslib/platform"; export let onHistory: () => void; export let history: HistoryEntry[] = []; - const historyKeyCombination = "Control+H"; + const historyKeyCombination = isApplePlatform() ? "Control+Shift+H" : "Control+H";