From 21f2468d67e11eff7ede0d85fa6f4ab5c4f7de84 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 21 Nov 2019 23:01:56 +0100 Subject: 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.) --- input/cmd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'input/cmd.h') diff --git a/input/cmd.h b/input/cmd.h index 2d9c922230..83791589ee 100644 --- a/input/cmd.h +++ b/input/cmd.h @@ -114,6 +114,7 @@ typedef struct mp_cmd { const struct mp_cmd_def *def; char *sender; // name of the client API user which sent this char *key_name; // string representation of the key binding + char *key_text; // text if key is a text key } mp_cmd_t; extern const struct mp_cmd_def mp_cmds[]; -- cgit v1.2.3