Skip to content

Commit

Permalink
Merge pull request #16 from Exabyte-io/fix/SOF-6587
Browse files Browse the repository at this point in the history
Fix/sof-6587
  • Loading branch information
VsevolodX committed Aug 23, 2023
2 parents dbeb451 + d4a6a3f commit c426ff1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions editor/js/Sidebar.Settings.Shortcuts.js
Expand Up @@ -95,13 +95,13 @@ function SidebarSettingsShortcuts( editor ) {

}

document.addEventListener( 'keydown', function ( event ) {
function shortcutsListener( event ) {

switch ( event.key.toLowerCase() ) {

case 'backspace':

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

// fall-through

Expand Down Expand Up @@ -172,7 +172,9 @@ function SidebarSettingsShortcuts( editor ) {

}

} );
}

document.addEventListener( 'keydown', shortcutsListener );

return container;

Expand Down

0 comments on commit c426ff1

Please sign in to comment.