Skip to content

A rootless Android app that boots Alpine Linux: run containers (Podman/Docker/LXC) and GUI desktop apps.

fix(x11): send a Unicode keysym for non-ASCII input after sticky Ctrl/Alt

ExTv75896b14cce1
diff --git a/app/src/main/java/com/excp/podroid/ui/screens/x11/X11Screen.kt b/app/src/main/java/com/excp/podroid/ui/screens/x11/X11Screen.kt
index 6552859..9eb1fad 100644
--- a/app/src/main/java/com/excp/podroid/ui/screens/x11/X11Screen.kt
+++ b/app/src/main/java/com/excp/podroid/ui/screens/x11/X11Screen.kt
@@ -695,7 +695,8 @@ fun X11Screen(
// Combine the sticky CTRL/ALT with the typed character
// (e.g. tap CTRL then type L → Ctrl+L to clear the
// terminal). sendWithModifiers clears the one-shot after.
- sendWithModifiers(addedText[0].code)
+ val cp = addedText[0].code
+ sendWithModifiers(if (cp in 0x20..0x7E) cp else 0x01000000 or cp)
// Reset buffer after ctrl/alt combo to keep it short.
imeBuf = TextFieldValue("")
} else {