forked from tools/josh
Prevent scroll when clicking nav menu
This commit is contained in:
parent
13d2164e89
commit
e9c617716e
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "fwdekker.com",
|
||||
"version": "0.40.0",
|
||||
"version": "0.40.1",
|
||||
"description": "The source code of [my personal website](https://fwdekker.com/).",
|
||||
"author": "Felix W. Dekker",
|
||||
"browser": "dist/bundle.js",
|
||||
|
|
|
@ -97,9 +97,9 @@ export class Terminal {
|
|||
this.inputHistory = Persistence.getHistory();
|
||||
this.shell = new Shell(this.inputHistory);
|
||||
|
||||
document.addEventListener("click", this.onclick.bind(this));
|
||||
document.addEventListener("keypress", this.onkeypress.bind(this));
|
||||
document.addEventListener("keydown", this.onkeydown.bind(this));
|
||||
this.terminal.addEventListener("click", this.onclick.bind(this));
|
||||
this.terminal.addEventListener("keypress", this.onkeypress.bind(this));
|
||||
this.terminal.addEventListener("keydown", this.onkeydown.bind(this));
|
||||
this.input.addEventListener("input", () => this.suggestionsText = "");
|
||||
|
||||
this.outputText += this.shell.generateHeader();
|
||||
|
|
Loading…
Reference in New Issue