From b7ac18078d206e8116b8076470b8a93e546f6ae3 Mon Sep 17 00:00:00 2001 From: samreid Date: Tue, 26 Jan 2021 22:20:32 -0700 Subject: [PATCH] Disable keyboard navigation for AC and AC-virtual lab, see https://github.com/phetsims/circuit-construction-kit-common/issues/656 --- js/circuit-construction-kit-dc-virtual-lab-main.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/js/circuit-construction-kit-dc-virtual-lab-main.js b/js/circuit-construction-kit-dc-virtual-lab-main.js index 279feab..3fa17a7 100644 --- a/js/circuit-construction-kit-dc-virtual-lab-main.js +++ b/js/circuit-construction-kit-dc-virtual-lab-main.js @@ -10,7 +10,6 @@ import CCKCConstants from '../../circuit-construction-kit-common/js/CCKCConstant import LabScreen from '../../circuit-construction-kit-dc/js/lab/LabScreen.js'; import Sim from '../../joist/js/Sim.js'; import simLauncher from '../../joist/js/simLauncher.js'; -import KeyboardUtils from '../../scenery/js/accessibility/KeyboardUtils.js'; import '../../scenery/js/nodes/Image.js'; import soundManager from '../../tambo/js/soundManager.js'; // Image is required for making toDataURLNodeSynchronous work in the built version import Tandem from '../../tandem/js/Tandem.js'; @@ -33,15 +32,6 @@ const simOptions = { tandem: tandem }; -// Support accessibility for deleting selected circuit elements, but don't support broader tab navigation until it -// is complete -document.addEventListener( 'keydown', event => { - const keyCode = event.keyCode || event.which; - if ( keyCode === KeyboardUtils.KEY_TAB ) { - event.preventDefault(); - } -} ); - // Circuit Construction Kit has unit tests for checking the mathematics for the Modified Nodal Analysis algorithm. In // order to load the classes into an accessible namespace, the *-config.js and *-main.js are loaded however, when // running the unit tests we don't also want to launch the simulation.