mirror of
https://github.com/TrentSPalmer/fcc-challenges.git
synced 2024-11-21 11:21:30 -08:00
drum-machine fix esc key back navigation in selection menus
This commit is contained in:
parent
fc53c8865c
commit
e680fdc2c2
@ -10,9 +10,8 @@
|
||||
|
||||
### TODOS
|
||||
|
||||
* increase granularity of esc key function in selection menus back navigation
|
||||
* fix toolstips for menuselectionitems
|
||||
* add focus() to selectionMenuItems so that you can immediately begin scrolling with arrow keys
|
||||
* add tip for scrolling selectionMenuItems
|
||||
* make sure metronome continues on volume, sound, or metronome BPM change
|
||||
* add additional metronome speed values
|
||||
* fix toolstips for menuselectionitems
|
||||
|
@ -48,8 +48,13 @@ const makeMetronomeSelection = (selection) => {
|
||||
makeAudioControl(padSelectingFor);
|
||||
makeMetronomeIcons(padSelectingFor);
|
||||
} else if (selection === '( cancel -- back )') {
|
||||
if (padSelectingFor === '') {
|
||||
metronomeMenuDisplayed = false;
|
||||
$('#display-middle-left-b').html((drumPadGrid));
|
||||
} else {
|
||||
padSelectingFor = '';
|
||||
showKeyMetronomeSelectionMenu();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -112,8 +117,13 @@ const makeVolumeSelection = (selection) => {
|
||||
volumeMenuDisplayed = false;
|
||||
$('#display-middle-left-b').html((drumPadGrid));
|
||||
} else if (selection === '( cancel -- back )') {
|
||||
if (padSelectingFor === '') {
|
||||
volumeMenuDisplayed = false;
|
||||
$('#display-middle-left-b').html((drumPadGrid));
|
||||
} else {
|
||||
padSelectingFor = '';
|
||||
showKeyVolumeSelectionMenu();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user