Skip to content

Commit 2a0223b

Browse files
Merge branch 'fix-ctrl-c'
2 parents 9a6cadb + d0f0394 commit 2a0223b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

bpython/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,9 @@ def p_key(self, key):
999999
elif key == '\x18':
10001000
return self.send_current_line_to_editor()
10011001

1002+
elif key == '\x03':
1003+
raise KeyboardInterrupt()
1004+
10021005
elif key[0:3] == 'PAD' and not key in ('PAD0', 'PADSTOP'):
10031006
pad_keys = {
10041007
'PADMINUS': '-',

0 commit comments

Comments
 (0)