Skip to content

Commit

Permalink
update: add event listeners to threejs editor only
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Aug 18, 2023
1 parent 22abd1b commit ad7deb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/js/Sidebar.Settings.Shortcuts.js
Expand Up @@ -95,13 +95,13 @@ function SidebarSettingsShortcuts( editor ) {

}

document.addEventListener( 'keydown', function ( event ) {
document.getElementById( 'threejs-editor' ).addEventListener( 'keydown', function ( event ) {

switch ( event.key.toLowerCase() ) {

case 'backspace':

// event.preventDefault(); // prevent browser back -- this is no longer an issue since 2016
event.preventDefault(); // prevent browser back -- this is no longer an issue since 2016

// fall-through

Expand Down

0 comments on commit ad7deb3

Please sign in to comment.