whscullin / apple2js

An Apple II emulator originally written in Javascript, now being converted to TypeScript
http://www.scullinsteel.com/apple2/
MIT License
438 stars 57 forks source link

Prevent the default action when the Apple keyboard handles a key #151

Closed iflan closed 2 years ago

iflan commented 2 years ago

Before, if the browser window wasn't tall enough to show the whole keyboard, using the arrow keys in the window would cause the page to move as well. Now all key events that are sent to the keyboard have preventDefault() called on them.