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:
Charlie Sharpsteen 2013-09-15 23:18:55 -07:00
parent c653bfca39
commit efa401e4d2
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ func scancodes(message string) []string {
//
// Scancodes are recorded here in pairs. The first entry represents
// 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["<bs>"] = []string{"0e", "8e"}
special["<del>"] = []string{"53", "d3"}