Skip to content

Commit

Permalink
Disable 3D field keyboard shortcuts when meta key is pressed (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Jan 3, 2025
1 parent dfa4704 commit f306c52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/renderers/ThreeDimensionRendererImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export default class ThreeDimensionRendererImpl implements TabRenderer {

// Create key bindings
window.addEventListener("keydown", (event) => {
if (event.metaKey) return;
if (event.target !== document.body) return;
if (canvasContainer.clientHeight === 0) return;
this.keysPressed.add(event.code);
Expand Down

0 comments on commit f306c52

Please sign in to comment.