1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

Allow select all key command for read-only TextEditors

This commit is contained in:
ed 2017-08-23 14:26:34 +01:00
parent 88c734d28d
commit 12e99c7152

View file

@ -1991,7 +1991,8 @@ void TextEditor::setEscapeAndReturnKeysConsumed (bool shouldBeConsumed) noexcept
bool TextEditor::keyPressed (const KeyPress& key)
{
if (isReadOnly() && key != KeyPress ('c', ModifierKeys::commandModifier, 0))
if (isReadOnly() && key != KeyPress ('c', ModifierKeys::commandModifier, 0)
&& key != KeyPress ('a', ModifierKeys::commandModifier, 0))
return false;
if (! TextEditorKeyMapper<TextEditor>::invokeKeyFunction (*this, key))