Skip to content

Commit

Permalink
simplify usages of keydown input listener, phetsims/scenery#1445 phet…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 21, 2022
1 parent e9cee01 commit 8fbc828
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion js/view/CircuitElementNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export default abstract class CircuitElementNode extends Node {
keydown: ( event: SceneryEvent<KeyboardEvent> ) => {

// on delete or backspace, the focused circuit element should be deleted
// @ts-ignore
if ( KeyboardUtils.isAnyKeyEvent( event.domEvent, [ KeyboardUtils.KEY_DELETE, KeyboardUtils.KEY_BACKSPACE ] ) ) {

// prevent default so 'backspace' and 'delete' don't navigate back a page in Firefox, see
Expand Down

0 comments on commit 8fbc828

Please sign in to comment.