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:
parent
88c734d28d
commit
12e99c7152
1 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue