From 4482b325d7fdabfc2f1fdb22c35705759b8e3358 Mon Sep 17 00:00:00 2001 From: Constantin Piber <59023762+cpiber@users.noreply.github.com> Date: Fri, 22 Aug 2025 01:18:33 +0200 Subject: [PATCH] [#1575] Disable Alt translation (#1608) --- .../kotlin/suwayomi/tachidesk/global/impl/KcefWebView.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/global/impl/KcefWebView.kt b/server/src/main/kotlin/suwayomi/tachidesk/global/impl/KcefWebView.kt index e089f309..f123a8be 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/global/impl/KcefWebView.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/global/impl/KcefWebView.kt @@ -466,8 +466,9 @@ class KcefWebView { val clickY = msg.clickY val modifier = ( - (if (msg.altKey == true) InputEvent.ALT_DOWN_MASK else 0) or - (if (msg.ctrlKey == true) InputEvent.CTRL_DOWN_MASK else 0) or + // Alt support is removed, since browsers already translate, so this messes with translation, see #1575 + // (if (msg.altKey == true) InputEvent.ALT_DOWN_MASK else 0) or + (if (msg.ctrlKey == true) InputEvent.CTRL_DOWN_MASK else 0) or (if (msg.shiftKey == true) InputEvent.SHIFT_DOWN_MASK else 0) or (if (msg.metaKey == true) InputEvent.META_DOWN_MASK else 0) )