Skip to content

Commit

Permalink
The ability to enter Cyrillic in the form
Browse files Browse the repository at this point in the history
  • Loading branch information
lsa committed Mar 3, 2022
1 parent 737f94c commit 4457fb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shiny/driver/internal/x11key/x11key.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package x11key // import "golang.org/x/exp/shiny/driver/internal/x11key"

import (
"runtime"
"unicode"

"golang.org/x/mobile/event/key"
Expand Down Expand Up @@ -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]
}

Expand Down

0 comments on commit 4457fb9

Please sign in to comment.