Browse Source

fixes #686: "End" key works incorrectly in TextBox.

pull/767/head
Ivan Kochurkin 10 years ago
parent
commit
8eea7fb4bc
  1. 4
      src/Avalonia.Controls/TextBox.cs

4
src/Avalonia.Controls/TextBox.cs

@ -718,6 +718,10 @@ namespace Avalonia.Controls
if (pos < text.Length) if (pos < text.Length)
{ {
--pos; --pos;
if (pos > 0 && Text[pos - 1] == '\r' && Text[pos] == '\n')
{
--pos;
}
} }
break; break;

Loading…
Cancel
Save