This commit is contained in:
Kovid Goyal 2021-01-20 16:02:28 +05:30
parent e6644aebcb
commit 2a8e8d4b38
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 0 deletions

View File

@ -307,6 +307,7 @@ is_legacy_ascii_key(uint32_t key) {
case ',':
case '.':
case '/':
case ' ':
return true;
default:
return false;

View File

@ -394,6 +394,7 @@ class TestKeys(BaseTest):
ae(enc(key=ord(':'), shifted_key=ord('/'), mods=shift | alt), '\x1b/')
ae(enc(key=ord(' ')), ' ')
ae(enc(key=ord(' '), mods=ctrl), '\0')
ae(enc(key=ord(' '), mods=alt), '\x1b ')
ae(enc(key=ord('i'), mods=ctrl | shift), csi(ctrl | shift, ord('i')))
ae(enc(key=defines.GLFW_FKEY_LEFT_SHIFT), '')
ae(enc(key=defines.GLFW_FKEY_CAPS_LOCK), '')