1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-13 00:04:19 +00:00

Projucer: Accessibility updates

This commit is contained in:
ed 2021-05-10 09:39:25 +01:00
parent ec990202b1
commit 69085b2a61
31 changed files with 567 additions and 333 deletions

View file

@ -45,11 +45,14 @@ CodeDocument& SourceCodeDocument::getCodeDocument()
return *codeDoc;
}
Component* SourceCodeDocument::createEditor()
std::unique_ptr<Component> SourceCodeDocument::createEditor()
{
auto* e = new SourceCodeEditor (this, getCodeDocument());
auto e = std::make_unique<SourceCodeEditor> (this, getCodeDocument());
applyLastState (*(e->editor));
return e;
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wredundant-move")
return std::move (e);
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
}
void SourceCodeDocument::reloadFromFile()
@ -380,7 +383,7 @@ public:
addAndMakeVisible (findNext);
setWantsKeyboardFocus (false);
setFocusContainer (true);
setFocusContainerType (FocusContainerType::keyboardFocusContainer);
findPrev.setWantsKeyboardFocus (false);
findNext.setWantsKeyboardFocus (false);