FIX: Neither Backspace or Delete work in mTCP Telnet #412

* Add CTRL-D as a default additional backspace key
 * Kludge 'delete' treated the same as 'backspace' in EditTextView if at the EOL
This commit is contained in:
Bryan Ashby
2022-04-08 15:19:00 -06:00
parent d3924c2591
commit 63c2ffcffa
3 changed files with 32 additions and 17 deletions

View File

@@ -17,7 +17,7 @@ exports.View = View;
const VIEW_SPECIAL_KEY_MAP_DEFAULT = {
accept : [ 'return' ],
exit : [ 'esc' ],
backspace : [ 'backspace', 'del' ],
backspace : [ 'backspace', 'del', 'ctrl + d'], // https://www.tecmint.com/linux-command-line-bash-shortcut-keys/
del : [ 'del' ],
next : [ 'tab' ],
up : [ 'up arrow' ],