slap-editor / slap

Sublime-like terminal-based text editor
MIT License
6.14k stars 217 forks source link

C-s, C-c hangs everything #46

Open howitzers opened 10 years ago

howitzers commented 10 years ago

slap@0.0.32, currently latest npm.

C-c on the save dialog hangs the editor and the only way out is signalling.

Here is my stty -a

speed 38400 baud; rows 38; columns 230; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
dbkaplun commented 10 years ago

@howitzers, thanks for filing this issue. To be clear, the issue is that the filename field loses focus when C-c is pressed, which seems to cause lose of keyboard responsiveness. If you click anywhere, focus will be regained. This will be fixed soon!