gazlaws-dev / codeboard

Codeboard App
Other
554 stars 114 forks source link

It seems most control chars can't be typed. #23

Open Dunbaratu opened 6 years ago

Dunbaratu commented 6 years ago

I first noticed the problem when using Termux (a unix-ish shell environment) which has a telnet client in it. It was impossible to type control-], which is how you get an escape from telnet.

A quick browse of the source code seems to imply that the ctrl highlight mode only works with a very few specific letters it was implemented for, and for all other keys the ctrl is ignored and it reverts to acting as if ctrl isn't on.

at-karan-sharma commented 6 years ago

Same here; in my case, I couldn't use Ctrl+d to exit the Python interpreter in a Termux shell. I think this should be treated as a high-priority bug.

Quasic commented 6 years ago

@Monsieur-Moony, @Dunbaratu: termux lets you use volume-down (or the extra-keys button) in place of Ctrl, though I agree.

at-karan-sharma commented 6 years ago

@Quasic Thanks, that's handy info 👍

Although not ideal, the extra-keys bar + codeboard is somewhat manageable for Termux.

theintel commented 6 years ago

But there's no doubt that this issue with CodeBoard needs to be fixed. This CTRL key doesn't even work with Nano 😒

hexregex commented 6 years ago

Confirm. Key bindings for tmux don't work (with termux). Default key bindings for tmux are ctrl-b (default send-prefix) followed by command key ('c', 'd', 'n', 'p', etc.). Pressing 'Ctrl', 'b', 'c', has the effect of typing 'c'. If I use 'CTR' in termux's extra keys, ssh from a remote terminal, or use another keyboard then the key bindings work. Enough of an issue that I no longer use CodeBoard.

gazlaws-dev commented 4 years ago

If anyone can test the latest code, please let me know if the issue has re-opened. Or give me a simple use case I can test myself.

Single letters like "Ctrl+d" should work, but "Ctrl+b+c" will not since the ctrl is not "locked" after the first character. This could be fixed by having a ctrl-lock like we do with shift currently.