Fix #5469
This commit is contained in:
parent
607bc845fc
commit
31fe35cd38
@ -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,6 +330,7 @@ class Loop:
|
||||
except Exception:
|
||||
pass
|
||||
else:
|
||||
if self.handler.perform_default_key_actions:
|
||||
if k.matches('ctrl+c'):
|
||||
self.handler.on_interrupt()
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user