We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 084bccf commit 175f09cCopy full SHA for 175f09c
1 file changed
libraries/keyboard_layout.py
@@ -111,8 +111,8 @@ def _above128char_to_keycode(self, char):
111
return self.HIGHER_ASCII[ord(char)]
112
113
raise ValueError(
114
- "Unsupported non-ASCII character {} \\x{}."
115
- .format(str(char), ord(char))
+ "Unsupported non-ASCII character {letter} ({num}/0x{num:02x})."
+ .format(letter=str(char), num=ord(char))
116
)
117
118
def _char_to_keycode(self, char):
@@ -127,7 +127,7 @@ def _char_to_keycode(self, char):
127
keycode = self.ASCII_TO_KEYCODE[char_val]
128
if keycode == 0:
129
130
- "No keycode available for character {} \\x{}."
131
- .format(str(char), char_val)
+ "No keycode available for character {letter} ({num}/0x{num:02x})."
+ .format(letter=str(char), num=char_val)
132
133
return keycode
0 commit comments