mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 18:22:09 +02:00
Fix #5469
This commit is contained in:
@@ -45,6 +45,7 @@ class Handler:
|
||||
mouse_tracking = MouseTracking.none
|
||||
terminal_io_ended = False
|
||||
overlay_ready_report_needed = False
|
||||
perform_default_key_actions = True # ctrl-c/ctrl-d will call on_interrupt and on_eot
|
||||
|
||||
def _initialize(
|
||||
self,
|
||||
|
||||
@@ -330,12 +330,13 @@ class Loop:
|
||||
except Exception:
|
||||
pass
|
||||
else:
|
||||
if k.matches('ctrl+c'):
|
||||
self.handler.on_interrupt()
|
||||
return
|
||||
if k.matches('ctrl+d'):
|
||||
self.handler.on_eot()
|
||||
return
|
||||
if self.handler.perform_default_key_actions:
|
||||
if k.matches('ctrl+c'):
|
||||
self.handler.on_interrupt()
|
||||
return
|
||||
if k.matches('ctrl+d'):
|
||||
self.handler.on_eot()
|
||||
return
|
||||
self.handler.on_key_event(k)
|
||||
|
||||
def _on_pm(self, pm: str) -> None:
|
||||
|
||||
Reference in New Issue
Block a user