diff options
author | sabetts <sabetts> | 2005-10-14 21:56:19 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2005-10-14 21:56:19 +0000 |
commit | 0ee9efb5c03e7c24079cff34965a7368ee4de9e4 (patch) | |
tree | ea5d57a176f16cd90e4f717bd50858cde889410d | |
parent | fe3ff66424f35065157a5afeb6fb5817cbcfdb80 (diff) | |
download | ratpoison-0ee9efb5c03e7c24079cff34965a7368ee4de9e4.zip |
(cmd_describekey): print the key name even when it's bound.
-rw-r--r-- | src/actions.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |