Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f70e076 commit 0ec5288Copy full SHA for 0ec5288
1 file changed
Lib/curses/has_key.py
@@ -163,7 +163,9 @@ def has_key(ch):
163
if type(ch) == type( '' ): ch = ord(ch)
164
165
# Figure out the correct capability name for the keycode.
166
- capability_name = _capability_names[ch]
+ capability_name = _capability_names.get(ch)
167
+ if capability_name is None:
168
+ return 0
169
170
#Check the current terminal description for that capability;
171
#if present, return true, else return false.
0 commit comments