Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/plugdata-team/plugdata i…
Browse files Browse the repository at this point in the history
…nto develop
  • Loading branch information
timothyschoen committed Dec 27, 2024
2 parents 53a7210 + 3a3020d commit f6e28f5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Source/Sidebar/CommandInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -790,9 +790,14 @@ class CommandInput final
return true;
}
if (key.getKeyCode() == KeyPress::escapeKey) {
if (auto* cnv = editor->getCurrentCanvas())
if (auto* cnv = editor->getCurrentCanvas()) {
if (cnv->selectedComponents.getNumSelected() == 0) {
editor->commandManager.invokeDirectly(CommandIDs::ShowCommandInput, false);
return true;
}
cnv->deselectAll();
updateCommandInputTarget();
updateCommandInputTarget();
}
return true;
}
if (key.getKeyCode() == KeyPress::spaceKey) {
Expand Down

0 comments on commit f6e28f5

Please sign in to comment.