Fix key handling in diff kitten

This commit is contained in:
Kovid Goyal
2021-01-15 09:48:11 +05:30
parent 66341111e6
commit 9c6ba213f9
3 changed files with 4 additions and 4 deletions

View File

@@ -277,14 +277,13 @@ class Loop:
pass
else:
self.handler.on_mouse(ev)
elif q == '~':
elif q in 'u~ABCDHFPQRS':
if csi == '200~':
self.in_bracketed_paste = True
return
elif csi == '201~':
self.in_bracketed_paste = False
return
elif q in 'u~ABCDHFPQRS':
try:
k = decode_key_event(csi[:-1], q)
except Exception: