From c7879d06c9934b81bac072923b79323b7bde4f7b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 30 Jun 2018 18:48:39 +0530 Subject: [PATCH] Output native key names in --debug-config --- kitty/cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kitty/cli.py b/kitty/cli.py index f67d5b0b1..94f51edd2 100644 --- a/kitty/cli.py +++ b/kitty/cli.py @@ -7,9 +7,10 @@ import re import sys from collections import deque -from .config import defaults, load_config from .conf.utils import resolve_config +from .config import defaults, load_config from .constants import appname, defconf, is_macos, is_wayland, str_version +from .fast_data_types import GLFW_KEY_UNKNOWN, glfw_get_key_name CONFIG_HELP = '''\ Specify a path to the configuration file(s) to use. All configuration files are @@ -630,7 +631,7 @@ def print_shortcut(key_sequence, action): names.append(name) if key: if is_native: - names.append(''.format(key)) + names.append(glfw_get_key_name(GLFW_KEY_UNKNOWN, key)) else: names.append(krmap[key]) keys.append('+'.join(names))