From 4457fb9984cf1a353a554a0bebf5bce890a452ff Mon Sep 17 00:00:00 2001 From: lsa Date: Thu, 3 Mar 2022 21:54:33 +0300 Subject: [PATCH] The ability to enter Cyrillic in the form --- shiny/driver/internal/x11key/x11key.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shiny/driver/internal/x11key/x11key.go b/shiny/driver/internal/x11key/x11key.go index 546d46306..45f63e0ae 100644 --- a/shiny/driver/internal/x11key/x11key.go +++ b/shiny/driver/internal/x11key/x11key.go @@ -8,6 +8,7 @@ package x11key // import "golang.org/x/exp/shiny/driver/internal/x11key" import ( + "runtime" "unicode" "golang.org/x/mobile/event/key" @@ -41,7 +42,7 @@ func (t *KeysymTable) Lookup(detail uint8, state uint16) (rune, key.Code) { if state&t.ModeSwitchMod != 0 { te = t.Table[detail][2:4] } - if state&t.ISOLevel3ShiftMod != 0 { + if state&t.ISOLevel3ShiftMod != 0 && runtime.GOOS != "linux" { te = t.Table[detail][4:6] }