Fix scancode comment concerning key release
According to the scancode reference, the release key code is generated by adding `0x80` to the key press code, not `0x81`.
This commit is contained in:
parent
8374b981a4
commit
2bd13bbfe7
|
@ -99,7 +99,7 @@ func scancodes(message string) []string {
|
||||||
//
|
//
|
||||||
// Scancodes are recorded here in pairs. The first entry represents
|
// Scancodes are recorded here in pairs. The first entry represents
|
||||||
// the key press and the second entry represents the key release and is
|
// the key press and the second entry represents the key release and is
|
||||||
// derived from the first by the addition of 0x81.
|
// derived from the first by the addition of 0x80.
|
||||||
special := make(map[string][]string)
|
special := make(map[string][]string)
|
||||||
special["<bs>"] = []string{"0e", "8e"}
|
special["<bs>"] = []string{"0e", "8e"}
|
||||||
special["<del>"] = []string{"53", "d3"}
|
special["<del>"] = []string{"53", "d3"}
|
||||||
|
|
Loading…
Reference in New Issue