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:
parent
ec990202b1
commit
69085b2a61
31 changed files with 567 additions and 333 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue