mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 04:13:44 +00:00
broadcast kitten: Fix decoding of key events
No clue why mypy didnt catch this error
This commit is contained in:
parent
17ff317d30
commit
d3d3e99979
2 changed files with 5 additions and 2 deletions
|
|
@ -18,6 +18,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
|||
- Allow specifying the previously active tab or the tab to the left/right of
|
||||
the active tab
|
||||
|
||||
- broadcast kitten: Fix a regression in ``0.20.0`` that broke sending of some
|
||||
keys, such as backspace
|
||||
|
||||
|
||||
0.22.0 [2021-07-26]
|
||||
----------------------
|
||||
|
|
|
|||
|
|
@ -145,8 +145,8 @@ Do not send text to the active window, even if it is one of the matched windows.
|
|||
elif encoding == 'base64':
|
||||
data = base64.standard_b64decode(q)
|
||||
elif encoding == 'kitty-key':
|
||||
data = base64.standard_b64decode(q)
|
||||
data = decode_key_event_as_window_system_key(data)
|
||||
bdata = base64.standard_b64decode(q)
|
||||
data = decode_key_event_as_window_system_key(bdata.decode('ascii'))
|
||||
else:
|
||||
raise TypeError(f'Invalid encoding for send-text data: {encoding}')
|
||||
exclude_active = payload_get('exclude_active')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue