SDK/Console: Fix selection erase

This commit is contained in:
Lynix 2019-12-23 18:44:19 +01:00
parent dec857d807
commit f2959641c0
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ namespace Ndk
m_input->OnTextAreaKeyBackspace.Connect([](const AbstractTextAreaWidget* textArea, bool* ignoreDefaultAction) m_input->OnTextAreaKeyBackspace.Connect([](const AbstractTextAreaWidget* textArea, bool* ignoreDefaultAction)
{ {
if (textArea->GetGlyphIndex() <= s_inputPrefixSize) if (textArea->GetGlyphIndex() < s_inputPrefixSize)
*ignoreDefaultAction = true; *ignoreDefaultAction = true;
}); });