phetsims / molecules-and-light

"Molecules and Light" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
2 stars 5 forks source link

Step Forward gets stuck when Enter Key is held down #337

Closed terracoda closed 4 years ago

terracoda commented 4 years ago

In last Friday's interview with JAWS consultant we noticed the Step Forward interaction gets stuck when holding down the Enter Key.

Focus also slipped to off the Step Forward button to Light Source button.

jessegreenberg commented 4 years ago

Reviewing the playback of what happened, it looks like JAWS + Firefox was being used.

terracoda commented 4 years ago

Note that we were using JAWS and Firefox in the interview instead of Chrome.

terracoda commented 4 years ago

Let's just verify these things do not happen in Chrome.

jessegreenberg commented 4 years ago

OK, I confirmed that this is happening with Chrome and JAWS.

jessegreenberg commented 4 years ago

I verified that this is just the behavior of JAWS for all buttons. It is happening for this basic HTML too

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>title</title>
</head>
<body>

<button id="button">Press Me!</button>
<ul id="output"></ul>

</body>
<script>
  const button = document.getElementById( 'button' );
  const list = document.getElementById( 'output' );

  button.addEventListener( 'click', event => {
    const newElement = document.createElement( 'li' );
    newElement.textContent = 'Click Received';
    list.appendChild( newElement );
  } );
</script>
</html>
jessegreenberg commented 4 years ago

I added this to our AT bug tracker at https://docs.google.com/document/d/1518zv6F0odExFsodShZxwTmWNQk3civuNwtQUR-rEBs/edit

Reassigning to @terracoda so you are aware of this result since it came up during an interview. But otherwise I think this can be closed.