chore: Comments cleanup

This commit is contained in:
Ward Truyen
2025-10-19 00:23:00 +02:00
parent 3360ddb918
commit 685fda27c7

View File

@@ -197,10 +197,11 @@ class WTerminal {
};
constructor(name, locationId, options) {
// use name in static storage of terminals
this.name = name;
this.locationId = location;
// use name in static storage of terminals
WTerminal.terminals[name] = this;
// Todo: use options variable ...
//create terminal elements
const container = WTerminal.createElement('div', { class: WTerminal.CONTAINER_CLASS, title: "Terminal" });
@@ -281,7 +282,7 @@ class WTerminal {
const btnClose = WTerminal.createElement('button', { title: "Close terminal" });//, "✖")
btnClose.innerHTML = "✖";
btnClose.onclick = (e) => this.terminalClose();
btnClose.onclick = () => this.terminalClose();
this.onDocBodyKeyDown = function(event) {
//this.printLn('keydown.code ' + event.code);
//console.log('terminal keydown.code ' + event.code);