mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-27 16:14:59 +00:00
Fix #1703
This commit is contained in:
parent
0fafc07db0
commit
9da095ca50
1 changed files with 6 additions and 2 deletions
|
|
@ -15,10 +15,14 @@ if is_macos:
|
|||
def get_key_name_lookup():
|
||||
return null_lookup
|
||||
else:
|
||||
|
||||
def load_libxkb_lookup():
|
||||
import ctypes
|
||||
lib = ctypes.CDLL('libxkbcommon.so')
|
||||
for suffix in ('.0', ''):
|
||||
try:
|
||||
lib = ctypes.CDLL('libxkbcommon.so' + suffix)
|
||||
break
|
||||
except Exception:
|
||||
pass
|
||||
f = lib.xkb_keysym_from_name
|
||||
f.argtypes = [ctypes.c_char_p, ctypes.c_int]
|
||||
f.restype = ctypes.c_int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue