Skip to content

Commit

Permalink
Fix ctrl+c when input bar focused
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudess committed Jan 5, 2018
1 parent ad08ab7 commit c5a33e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tui.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ class Tui {
this.exit()
));

this.inputBar.key(["C-c"], () => (
this.ext()
));

process.on("SIGINT", () => {
this.exit();
});
Expand Down

0 comments on commit c5a33e6

Please sign in to comment.