From 42a0dad026262ec458f9c6c3d6e2995e4699f778 Mon Sep 17 00:00:00 2001 From: Khoa Vo Date: Fri, 26 Jun 2026 15:32:13 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20Telex=20mode=20broken=20=E2=80=94=20is?= =?UTF-8?q?=5Fvn=5Fcontrol=5Fkey=20consumed=20normal=20letters=20a/e/o/d/u?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only pure control keys (f,s,r,x,j,w) should be consumed silently. Base letters used in double-letter marks (aa→â, ee→ê, etc.) are normal typing keys that must be forwarded when no mark triggers. Removed uppercase variants too — consolidated with to_ascii_lowercase(). --- daemon/src/main.rs | 2 +- packaging/appimage/build-appimage.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/src/main.rs b/daemon/src/main.rs index 4732569..e016aac 100644 --- a/daemon/src/main.rs +++ b/daemon/src/main.rs @@ -1117,7 +1117,7 @@ fn create_injector( fn is_vn_control_key(method: &str, ch: char) -> bool { match method { - "telex" => matches!(ch, 'f' | 's' | 'r' | 'x' | 'j' | 'w' | 'a' | 'e' | 'o' | 'd' | 'u' | 'F' | 'S' | 'R' | 'X' | 'J' | 'W' | 'A' | 'E' | 'O' | 'D' | 'U'), + "telex" => matches!(ch.to_ascii_lowercase(), 'f' | 's' | 'r' | 'x' | 'j' | 'w'), "vni" => matches!(ch, '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '0'), _ => false, } diff --git a/packaging/appimage/build-appimage.sh b/packaging/appimage/build-appimage.sh index 1203231..f60b364 100644 --- a/packaging/appimage/build-appimage.sh +++ b/packaging/appimage/build-appimage.sh @@ -11,7 +11,7 @@ fi SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)" APPDIR="$SCRIPT_DIR/AppDir" -VERSION="${1:-0.1.0}" +VERSION="${1:-0.1.1}" echo "=== Building Viet+ AppImage v${VERSION} ==="