cointop-sh / cointop

A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀
https://cointop.sh
Apache License 2.0
3.94k stars 309 forks source link

ctrl+c doesn't work as expected (to exit app) on Windows/Linux #292

Closed vuon9 closed 2 years ago

vuon9 commented 2 years ago

Right now we're binding ^C to tcell.KeyCtrlC + tcell.ModNone But the event is arriving (on my mac at least) as tcell.KeyCtrlC + tcell.ModControl

^C happens to be hardcoded (ignoring the shortcut config), so we can fix it with a kludge, but the shortcut parsing/binding may need to bind both?

lyricnz commented 2 years ago

I guess we need to bind ^C to both key=ControlC,mod=None and key=ControlC,mod=Control

lyricnz commented 2 years ago

Probably fixed by #293

lyricnz commented 2 years ago

Yup