Skip to content

Commit

Permalink
Cleanup unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWoods committed Jul 29, 2024
1 parent f988cec commit be1f8f6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 174 deletions.
6 changes: 0 additions & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ const config = [
'no-var': 'error',
},
},
{
files: ['lib/*.mjs'],
languageOptions: {
globals: globals.node,
},
},
];

export default config;
15 changes: 0 additions & 15 deletions lib/absolute-path.mjs

This file was deleted.

31 changes: 0 additions & 31 deletions lib/ignore.mjs

This file was deleted.

5 changes: 5 additions & 0 deletions src/viewer/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ focusable.forEach((input) => {

document.addEventListener('keydown', (evt) => {
if (evt.repeat) return; // Ignore holding down keys
if (evt.target instanceof HTMLInputElement && evt.target.type === 'text') {
// Ignore typing in text fields
return;
}

const input = accessKeys.get(evt.key);

if (input) {
Expand Down
56 changes: 0 additions & 56 deletions src/viewer/layer.js

This file was deleted.

66 changes: 0 additions & 66 deletions src/viewer/types.d.ts

This file was deleted.

0 comments on commit be1f8f6

Please sign in to comment.