Skip to content

Commit

Permalink
Combine fireOnKeyDown and fireOnKeyUp options, see phetsims/scenery#1520
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Jan 18, 2023
1 parent 074ae2b commit a9a9fca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/micro/view/MicroScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ class MicroScreenView extends ScreenView {
const keyboardListener = new KeyboardListener( {
keys: [ 'alt+l' ],
global: true,
fireOnKeyUp: true,
fireOnKeyDown: false,
listenerFireTrigger: 'up',
callback: ( event, listener ) => {
if ( !photonAbsorptionModel.runningProperty.get() ) {

Expand Down

0 comments on commit a9a9fca

Please sign in to comment.