Fix bug with keyboard input
This commit is contained in:
parent
ae514f5ae2
commit
5a76bd0c22
@ -120,7 +120,8 @@ func (backend *Backend) keycodeToButton (
|
|||||||
symbol2Rune = unicode.ToUpper(symbol1Rune)
|
symbol2Rune = unicode.ToUpper(symbol1Rune)
|
||||||
cased = true
|
cased = true
|
||||||
} else {
|
} else {
|
||||||
symbol2 = symbol1
|
symbol2 = symbol1
|
||||||
|
symbol2Rune = symbol1Rune
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if symbol4 == 0 {
|
if symbol4 == 0 {
|
||||||
@ -131,15 +132,14 @@ func (backend *Backend) keycodeToButton (
|
|||||||
symbol4Rune = unicode.ToUpper(symbol3Rune)
|
symbol4Rune = unicode.ToUpper(symbol3Rune)
|
||||||
cased = true
|
cased = true
|
||||||
} else {
|
} else {
|
||||||
symbol4 = symbol3
|
symbol4 = symbol3
|
||||||
|
symbol4Rune = symbol3Rune
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var selectedKeysym xproto.Keysym
|
var selectedKeysym xproto.Keysym
|
||||||
var selectedRune rune
|
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
|
// big ol list in the middle
|
||||||
switch {
|
switch {
|
||||||
// FIXME: take into account numlock
|
// FIXME: take into account numlock
|
||||||
|
Loading…
Reference in New Issue
Block a user