mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
Updated CodeEditorComponent to act as an ApplicationCommandTarget
This commit is contained in:
parent
5428554cda
commit
3831af62ef
14 changed files with 187 additions and 154 deletions
|
|
@ -535,7 +535,7 @@ void ProjectContentComponent::getAllCommands (Array <CommandID>& commands)
|
|||
CommandIDs::goToPreviousDoc,
|
||||
CommandIDs::goToNextDoc,
|
||||
CommandIDs::goToCounterpart,
|
||||
StandardApplicationCommandIDs::del };
|
||||
CommandIDs::deleteSelectedItem };
|
||||
|
||||
commands.addArray (ids, numElementsInArray (ids));
|
||||
}
|
||||
|
|
@ -655,7 +655,7 @@ void ProjectContentComponent::getCommandInfo (const CommandID commandID, Applica
|
|||
result.defaultKeypresses.add (KeyPress ('i', ModifierKeys::commandModifier, 0));
|
||||
break;
|
||||
|
||||
case StandardApplicationCommandIDs::del:
|
||||
case CommandIDs::deleteSelectedItem:
|
||||
result.setInfo ("Delete Selected File", String::empty, CommandCategories::general, 0);
|
||||
result.defaultKeypresses.add (KeyPress (KeyPress::deleteKey, 0, 0));
|
||||
result.defaultKeypresses.add (KeyPress (KeyPress::backspaceKey, 0, 0));
|
||||
|
|
@ -712,7 +712,7 @@ bool ProjectContentComponent::perform (const InvocationInfo& info)
|
|||
|
||||
case CommandIDs::openInIDE: openInIDE(); break;
|
||||
|
||||
case StandardApplicationCommandIDs::del: deleteSelectedTreeItems(); break;
|
||||
case CommandIDs::deleteSelectedItem: deleteSelectedTreeItems(); break;
|
||||
|
||||
case CommandIDs::saveAndOpenInIDE:
|
||||
if (saveProject())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue