Skip to content

Commit

Permalink
stop the Tab key from doing anything
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Mar 13, 2022
1 parent 390f309 commit 50aedda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/__start_handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ window.addEventListener("keydown", (event) => {
event.preventDefault();
hub.input_up_down(1);

// Tab is annoying, especially if the comments box is "hidden" -- which at the time of writing really means that the tree
// is big enough that the comments are pushed offscreen. They are still there for tab to go to.

} else if (event.code === "Tab") {
event.preventDefault();

// Our motivation for having "Space" here is twofold - it DOES cause undesired scrolling, but also:
//
// 1. We want "Space" to be shown as an accelerator in the menu, so it's there in main.js.
Expand Down

0 comments on commit 50aedda

Please sign in to comment.