mirror of https://github.com/mpv-player/mpv
input: remove incorrect "CTRL" keyname alias for backspace
The keycodes.h file contains a KEY_CTRL define, then various control keys expressed as "KEY_CTRL + 0" and so on. Back in 2002 when the key name table in input.c was created this KEY_CTRL define was mistakenly interpreted as a key name, apparently confusing it with the Ctrl key (even though the input system didn't handle that key back then). As a result there was an incorrect key name entry with the same key code as backspace and name "CTRL". This incorrect entry was used when printing the name of the key. Delete it.
This commit is contained in:
parent
106c5f9989
commit
7f576e8b66
|
@ -230,7 +230,6 @@ static const mp_key_name_t key_names[] = {
|
||||||
{ '#', "SHARP" },
|
{ '#', "SHARP" },
|
||||||
{ KEY_ENTER, "ENTER" },
|
{ KEY_ENTER, "ENTER" },
|
||||||
{ KEY_TAB, "TAB" },
|
{ KEY_TAB, "TAB" },
|
||||||
{ KEY_CTRL, "CTRL" },
|
|
||||||
{ KEY_BACKSPACE, "BS" },
|
{ KEY_BACKSPACE, "BS" },
|
||||||
{ KEY_DELETE, "DEL" },
|
{ KEY_DELETE, "DEL" },
|
||||||
{ KEY_INSERT, "INS" },
|
{ KEY_INSERT, "INS" },
|
||||||
|
|
Loading…
Reference in New Issue