Skip to content

Commit 4457fb9

Browse files
author
lsa
committed
The ability to enter Cyrillic in the form
1 parent 737f94c commit 4457fb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shiny/driver/internal/x11key/x11key.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
package x11key // import "golang.org/x/exp/shiny/driver/internal/x11key"
99

1010
import (
11+
"runtime"
1112
"unicode"
1213

1314
"golang.org/x/mobile/event/key"
@@ -41,7 +42,7 @@ func (t *KeysymTable) Lookup(detail uint8, state uint16) (rune, key.Code) {
4142
if state&t.ModeSwitchMod != 0 {
4243
te = t.Table[detail][2:4]
4344
}
44-
if state&t.ISOLevel3ShiftMod != 0 {
45+
if state&t.ISOLevel3ShiftMod != 0 && runtime.GOOS != "linux" {
4546
te = t.Table[detail][4:6]
4647
}
4748

0 commit comments

Comments
 (0)