From da8cd0005c6854f56631bb0cc99beb727ecc3552 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sun, 26 May 2024 11:50:12 +0900 Subject: [PATCH] chore: Add translate attribute to TextAreaInput for better accessibility --- src/lib/UI/GUI/TextAreaInput.svelte | 1 + src/ts/util.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/lib/UI/GUI/TextAreaInput.svelte b/src/lib/UI/GUI/TextAreaInput.svelte index e1530d8b..aaff393b 100644 --- a/src/lib/UI/GUI/TextAreaInput.svelte +++ b/src/lib/UI/GUI/TextAreaInput.svelte @@ -73,6 +73,7 @@ on:keydown={(e) => { onInput() }} + translate="no" >{value ?? ''} {/if} diff --git a/src/ts/util.ts b/src/ts/util.ts index 08dee1fd..bc9e3630 100644 --- a/src/ts/util.ts +++ b/src/ts/util.ts @@ -10,6 +10,8 @@ import { appWindow } from '@tauri-apps/api/window'; import { isTauri } from "./storage/globalApi" import { Marked } from "marked" +const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1 + const mconverted = new Marked({ gfm: true, breaks: true,