Fix bug with keyboard input

This commit is contained in:
Sasha Koshka 2022-11-23 20:34:05 -05:00
parent ae514f5ae2
commit 5a76bd0c22

View File

@ -121,6 +121,7 @@ func (backend *Backend) keycodeToButton (
cased = true
} else {
symbol2 = symbol1
symbol2Rune = symbol1Rune
}
}
if symbol4 == 0 {
@ -132,14 +133,13 @@ func (backend *Backend) keycodeToButton (
cased = true
} else {
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 {
// FIXME: take into account numlock