diff --git a/src/App.svelte b/src/App.svelte
index efd69b559..939cfd188 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -18,7 +18,7 @@
import { nodeRunning } from "@app/lib/events";
import { dynamicInterval } from "@app/lib/interval";
import { invoke } from "@app/lib/invoke";
- import { hide } from "@app/lib/modal";
+ import { hide, toggle } from "@app/lib/modal";
import * as router from "@app/lib/router";
import { isLoadedRepoRoute } from "@app/lib/router/definitions";
import {
@@ -35,6 +35,7 @@
theme,
} from "@app/components/ThemeSwitch.svelte";
import GuideView from "@app/modals/Guide.svelte";
+ import SettingsView from "@app/modals/Settings.svelte";
import Auth from "@app/views/auth/Auth.svelte";
import CreateIdentity from "@app/views/auth/CreateIdentity.svelte";
import InboxView from "@app/views/Inbox.svelte";
@@ -176,6 +177,9 @@
decreaseFontSize();
} else if (auxiliarKey && e.key.toLowerCase() === "0") {
resetFontSize();
+ } else if (auxiliarKey && e.key === ",") {
+ e.preventDefault();
+ toggle({ component: SettingsView, props: {} });
}
}} />
diff --git a/src/lib/modal.ts b/src/lib/modal.ts
index ae194847c..cf6f64e15 100644
--- a/src/lib/modal.ts
+++ b/src/lib/modal.ts
@@ -73,6 +73,10 @@ export function show>(args: ShowArgs): void {
export function toggle>(args: ShowArgs): void {
const stored = get(modalStore);
+ if (stored?.disableHide) {
+ return;
+ }
+
if (stored && stored.component === args.component) {
hide();
return;