From 5a76bd0c223d7c4d4554e8a99672514738ccbf0f Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 23 Nov 2022 20:34:05 -0500 Subject: [PATCH] Fix bug with keyboard input --- backends/x/unicode.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backends/x/unicode.go b/backends/x/unicode.go index 47c9d61..8f88a6f 100644 --- a/backends/x/unicode.go +++ b/backends/x/unicode.go @@ -120,7 +120,8 @@ func (backend *Backend) keycodeToButton ( symbol2Rune = unicode.ToUpper(symbol1Rune) cased = true } else { - symbol2 = symbol1 + symbol2 = symbol1 + symbol2Rune = symbol1Rune } } if symbol4 == 0 { @@ -131,14 +132,13 @@ func (backend *Backend) keycodeToButton ( symbol4Rune = unicode.ToUpper(symbol3Rune) cased = true } else { - symbol4 = symbol3 + symbol4 = symbol3 + symbol4Rune = symbol3Rune } } var selectedKeysym xproto.Keysym var selectedRune rune - - // fmt.Printf("AAA\t%X\t%X\t%X\t%X\n", symbol1, symbol2, symbol3, symbol4) // big ol list in the middle switch {