summaryrefslogtreecommitdiff
path: root/src/gui/gui-key.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-02-16 20:30:52 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-03-16 20:42:18 +0100
commit31bf962bba5c8b81a59f4173405e48a2f3887c1e (patch)
tree3b3937e6276bdabca51af9fbb054f9e752afb1b2 /src/gui/gui-key.h
parent15587ac72f8cb432e03439e8f5b09754cfab20b3 (diff)
downloadweechat-31bf962bba5c8b81a59f4173405e48a2f3887c1e.zip
core: display new key name using aliases in output of `/key` command
Diffstat (limited to 'src/gui/gui-key.h')
-rw-r--r--src/gui/gui-key.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/gui-key.h b/src/gui/gui-key.h
index 52d3ee326..f49653bbe 100644
--- a/src/gui/gui-key.h
+++ b/src/gui/gui-key.h
@@ -54,7 +54,8 @@ enum t_gui_key_focus
struct t_gui_key
{
- char *key; /* key combo (ex: a, ^W, ^W^C, meta-a) */
+ char *key; /* raw key (eg: \001w, \001[[1;3D) */
+ char *key_name; /* key name (eg: ctrl-w, meta-left) */
int area_type[2]; /* type of areas (for cursor/mouse) */
char *area_name[2]; /* name of areas (for cursor/mouse) */
char *area_key; /* key after area (after ":") */