fix: Telex mode broken — is_vn_control_key consumed normal letters a/e/o/d/u
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().
This commit is contained in:
parent
ac7d5c24ec
commit
42a0dad026
2 changed files with 2 additions and 2 deletions
|
|
@ -1117,7 +1117,7 @@ fn create_injector(
|
||||||
|
|
||||||
fn is_vn_control_key(method: &str, ch: char) -> bool {
|
fn is_vn_control_key(method: &str, ch: char) -> bool {
|
||||||
match method {
|
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'),
|
"vni" => matches!(ch, '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '0'),
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ fi
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
||||||
APPDIR="$SCRIPT_DIR/AppDir"
|
APPDIR="$SCRIPT_DIR/AppDir"
|
||||||
VERSION="${1:-0.1.0}"
|
VERSION="${1:-0.1.1}"
|
||||||
|
|
||||||
echo "=== Building Viet+ AppImage v${VERSION} ==="
|
echo "=== Building Viet+ AppImage v${VERSION} ==="
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue