Fix #5469
This commit is contained in:
parent
607bc845fc
commit
31fe35cd38
@ -45,6 +45,7 @@ class Handler:
|
|||||||
mouse_tracking = MouseTracking.none
|
mouse_tracking = MouseTracking.none
|
||||||
terminal_io_ended = False
|
terminal_io_ended = False
|
||||||
overlay_ready_report_needed = False
|
overlay_ready_report_needed = False
|
||||||
|
perform_default_key_actions = True # ctrl-c/ctrl-d will call on_interrupt and on_eot
|
||||||
|
|
||||||
def _initialize(
|
def _initialize(
|
||||||
self,
|
self,
|
||||||
|
|||||||
@ -330,6 +330,7 @@ class Loop:
|
|||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
if self.handler.perform_default_key_actions:
|
||||||
if k.matches('ctrl+c'):
|
if k.matches('ctrl+c'):
|
||||||
self.handler.on_interrupt()
|
self.handler.on_interrupt()
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user