wavesoft / local-echo

A local-echo controller for xterm.js
Apache License 2.0
142 stars 71 forks source link

key combinations don't work #38

Closed toxicrecker closed 3 years ago

toxicrecker commented 3 years ago

I tried to read Ctrl+C using local-echo but it does not work, localEcho.read simply does not work

toxicrecker commented 3 years ago

nvm, fixed using

term.on("key", (key, ev) => {
    if (ev.ctrlKey) {
        // ctrl+key
        socket.emit("pty-key", {"key": key})
    }
})