diff options
author | wm4 <wm4@nowhere> | 2019-11-21 23:01:56 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-22 01:15:08 +0100 |
commit | 21f2468d67e11eff7ede0d85fa6f4ab5c4f7de84 (patch) | |
tree | 0eccc529be050bdfe602ccbbcebdc04f4f193e71 /input/cmd.c | |
parent | eab5457e47389d5eeb79010f2f35e4d6613df86f (diff) | |
download | mpv-21f2468d67e11eff7ede0d85fa6f4ab5c4f7de84.tar.bz2 mpv-21f2468d67e11eff7ede0d85fa6f4ab5c4f7de84.tar.xz |
input: add text produced by key to script key events
Particularly for "any_unicode" mappings, so they don't have to
special-case keys like '#' and ' ', which are normally mapped to
symbolic names for input.conf reasons. (Though admittedly, this is a
pretty minor thing, since API users could map these manually.)
Diffstat (limited to 'input/cmd.c')
-rw-r--r-- | input/cmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/input/cmd.c b/input/cmd.c index f0bb53e040..91d171ccaa 100644 --- a/input/cmd.c +++ b/input/cmd.c @@ -511,6 +511,7 @@ mp_cmd_t *mp_cmd_clone(mp_cmd_t *cmd) } ret->original = bstrdup(ret, cmd->original); ret->key_name = talloc_strdup(ret, ret->key_name); + ret->key_text = talloc_strdup(ret, ret->key_text); if (cmd->def == &mp_cmd_list) { struct mp_cmd *prev = NULL; |