forked from tools/josh
1
0
Fork 0

Prevent scroll when clicking nav menu

This commit is contained in:
Florine W. Dekker 2021-04-22 17:13:24 +02:00
parent 13d2164e89
commit e9c617716e
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
2 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

@ -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();