| 297 | } |
| 298 | |
| 299 | bool 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 | |
| 334 | void NeuralNoteMainView::updateEnablements() |
| 335 | { |
nothing calls this directly
no outgoing calls
no test coverage detected