summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2011-02-05 02:13:58 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-02-05 02:13:58 +0200
commit7f576e8b6633571ed9eb8fa9106cb06592b7470c (patch)
treec01abbf3ffe960a886c6638dfbc9b6bab7bdbf65
parent106c5f99895fefaf5386f7a4a8ddf6e3d646f1fa (diff)
downloadmpv-7f576e8b6633571ed9eb8fa9106cb06592b7470c.tar.bz2
mpv-7f576e8b6633571ed9eb8fa9106cb06592b7470c.tar.xz
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.
-rw-r--r--input/input.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/input/input.c b/input/input.c
index dd4a27d63c..822a1e3b42 100644
--- a/input/input.c
+++ b/input/input.c
@@ -230,7 +230,6 @@ static const mp_key_name_t key_names[] = {
{ '#', "SHARP" },
{ KEY_ENTER, "ENTER" },
{ KEY_TAB, "TAB" },
- { KEY_CTRL, "CTRL" },
{ KEY_BACKSPACE, "BS" },
{ KEY_DELETE, "DEL" },
{ KEY_INSERT, "INS" },