'How can I disable xterm.js's onkey event?
_xterm.onKey((e) => {
console.log(e);
//.....
});
I want to disable onkey event of xterm when a button is pressed using one button. What should I do?
Solution 1:[1]
I found a way to disable xterm.js's onkey event
const disposable = _xterm.onKey((e) => {
console.log(e);
//.....
// stop listening for consecutive events
disposable.dispose();
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | dsilva01 |
