File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -513,15 +513,13 @@ bool EditorViewport::keyPressed(const KeyPress& key)
513513 {
514514 lastEditorClicked->switchIO (0 );
515515 AccessClass::getProcessorGraph ()->updateViews (lastEditorClicked->getProcessor ());
516+ this ->grabKeyboardFocus ();
516517 }
517518 }
518519 else
519520 {
520- if (editorArray.getFirst ())
521- {
522- lastEditorClicked = editorArray.getFirst ();
523- lastEditorClicked->select ();
524- }
521+ lastEditorClicked = editorArray.getFirst ();
522+ lastEditorClicked->select ();
525523 }
526524
527525 return true ;
@@ -534,15 +532,13 @@ bool EditorViewport::keyPressed(const KeyPress& key)
534532 {
535533 lastEditorClicked->switchIO (1 );
536534 AccessClass::getProcessorGraph ()->updateViews (lastEditorClicked->getProcessor ());
535+ this ->grabKeyboardFocus ();
537536 }
538537 }
539538 else
540539 {
541- if (editorArray.getFirst ())
542- {
543- lastEditorClicked = editorArray.getFirst ();
544- lastEditorClicked->select ();
545- }
540+ lastEditorClicked = editorArray.getFirst ();
541+ lastEditorClicked->select ();
546542 }
547543 return true ;
548544 }
You can’t perform that action at this time.
0 commit comments