File tree Expand file tree Collapse file tree 1 file changed +23
-22
lines changed Expand file tree Collapse file tree 1 file changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -191,28 +191,29 @@ $(document).on("keydown", (e) => {
191191 * r = random
192192 */
193193 let shift = e . shiftKey
194- switch ( e . key ) {
195- case "ArrowLeft" :
196- if ( shift ) buttonFirst ( )
197- else buttonPrevious ( )
198- break
199- case "ArrowRight" :
200- if ( shift ) buttonLast ( )
201- else buttonNext ( )
202- break
203- case "r" :
204- buttonRandom ( )
205- break
206- case "plus" :
207- buttonPlus ( )
208- break
209- case "minus" :
210- buttonMinus ( )
211- break
212- default :
213- console . log ( `Unhandled key: ${ e . key } ` ) ;
214- break ;
215- }
194+ console . log ( `Pressed ${ e . key } with shift status ${ shift } ` )
195+ // switch (e.key) {
196+ // case "ArrowLeft":
197+ // if (shift) buttonFirst()
198+ // else buttonPrevious()
199+ // break
200+ // case "ArrowRight":
201+ // if (shift) buttonLast()
202+ // else buttonNext()
203+ // break
204+ // case "r":
205+ // buttonRandom()
206+ // break
207+ // case "plus":
208+ // buttonPlus()
209+ // break
210+ // case "minus":
211+ // buttonMinus()
212+ // break
213+ // default:
214+ // console.log(`Unhandled key: ${e.key}`);
215+ // break;
216+ // }
216217} )
217218
218219// ================================ ON LOAD ================================ //
You can’t perform that action at this time.
0 commit comments