MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / keyPressed

Method keyPressed

NeuralNote/Source/Components/NeuralNoteMainView.cpp:299–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299bool NeuralNoteMainView::keyPressed(const KeyPress& key)
300{
301 if (key == KeyPress(KeyPress::spaceKey, ModifierKeys::shiftModifier, 0)) {
302 mBackButton->triggerClick();
303 return true;
304 }
305
306 if (key == KeyPress::spaceKey) {
307 mPlayPauseButton->triggerClick();
308 return true;
309 }
310
311 if (key == KeyPress(KeyPress::backspaceKey, ModifierKeys::shiftModifier, 0)) {
312 mClearButton->triggerClick();
313 return true;
314 }
315
316 if (key == KeyPress('r', juce::ModifierKeys::noModifiers, 0)) {
317 mRecordButton->triggerClick();
318 return true;
319 }
320
321 if (key == KeyPress('m', juce::ModifierKeys::noModifiers, 0)) {
322 mMuteButton->triggerClick();
323 return true;
324 }
325
326 if (key == KeyPress('c', juce::ModifierKeys::noModifiers, 0)) {
327 mCenterButton->triggerClick();
328 return true;
329 }
330
331 return false;
332}
333
334void NeuralNoteMainView::updateEnablements()
335{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected