mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 09:09:01 +00:00
add comments for key codes
This commit is contained in:
parent
03b59717b2
commit
da4b72c2d3
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue