Sdk/TextAreaWidget: Fix cursor showing up on readonly text area

This commit is contained in:
Jérôme Leclercq
2017-11-23 13:24:13 +01:00
parent d98b7a8f4f
commit 3cff3fbadc
2 changed files with 6 additions and 3 deletions

View File

@@ -170,8 +170,7 @@ namespace Ndk
inline void TextAreaWidget::SetReadOnly(bool readOnly)
{
m_readOnly = readOnly;
m_cursorEntity->Enable(!m_readOnly);
m_cursorEntity->Enable(!m_readOnly && HasFocus());
}
inline void TextAreaWidget::SetText(const Nz::String& text)