add comments for key codes

This commit is contained in:
jberg 2018-05-15 17:48:55 -07:00 committed by Jordan Eldredge
parent 03b59717b2
commit da4b72c2d3

View file

@ -108,11 +108,11 @@ class MilkdropWindow extends React.Component {
}
}
_handleKeyboardInput(e) {
if (e.which === 32) {
if (e.which === 32) { // spacebar
this._nextPreset(USER_PRESET_TRANSITION_SECONDS);
} else if (e.which === 8) {
} else if (e.which === 8) { // backspace
this._prevPreset(0);
} else if (e.which === 72) {
} else if (e.which === 72) { // H
this._nextPreset(0);
}
}