TextBox AcceptsReturn completely broken
See original GitHub issueAvalonia Version 0.6.1, Windows 7
MainWindow.xaml:
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="DxEditor">
<TextBox AcceptsReturn="true">
Hello World!
</TextBox>
</Window>
Run the app, press enter on the textbox. Caret doesn’t move to the line below, just adds what looks like 2 spaces. (The actual text is modified correctly)
The next keypress does add a newline, but the caret is misaligned by 2 spaces and on the wrong line. If you actually write text (like abc), it appears in the real position (so one line below the caret) The caret is moved to the right position.
Push up to navigate to the first line, then move to the right, the caret will jump to the line below just before reaching the ! character (so you can’t add something in from of the !). You can place the caret after the ! if you use the mouse.
I wish I could help fix this but I have no knowledge of low level GUI programming.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Seems to work now, thank you!
Confirmed repro of this bug and #1675 fixed it; Thanks @ivanatpr for your contribution 👍
Please recheck this @drlagos if theres any issues still