From 0ee9efb5c03e7c24079cff34965a7368ee4de9e4 Mon Sep 17 00:00:00 2001 From: sabetts Date: Fri, 14 Oct 2005 21:56:19 +0000 Subject: (cmd_describekey): print the key name even when it's bound. --- src/actions.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/actions.c b/src/actions.c index ccfb048..62a5ee9 100644 --- a/src/actions.c +++ b/src/actions.c @@ -5194,7 +5194,11 @@ cmd_describekey (int interactive, struct cmdarg **args) if ((key_action = find_keybinding (keysym, x11_mask_to_rp_mask (mod), map))) { - return cmdret_new (RET_SUCCESS, "%s", key_action->data); + cmdret *ret; + keysym_name = keysym_to_string (keysym, x11_mask_to_rp_mask (mod)); + ret = cmdret_new (RET_SUCCESS, "%s bound to '%s'", keysym_name, key_action->data); + free (keysym_name); + return ret; } else { -- cgit v1.2.3