Ticket #14915 (closed defect: fixed)
wxRichTextCtrl: Not able to move up to empty first line
| Reported by: | walderich | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxRichText | Version: | 2.9-svn |
| Keywords: | wxRichTextCtrl movement | Cc: | |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
I am not able to use the <up> key to move to the first line in a wxRichTextCtrl, when it is empty.
I tested this using the richtext sample application as reference. To reproduce the problem, do the following steps:
- Delete all text inside the control
- Press <enter> key once
- Press <up> key for moving to the first line again
What I can see then is, that the cursor still is on the second line. It is not possible to move to the first line with the <up> key. Using the mouse is also not working correctly. When clicking on the first line, the cursor is moved to the start of the second line.
Using other keys, like <backspace> or <left> is still working, as is clicking before the first line with the mouse. This only happens, when the first line is empty.
I could reproduce this behaviour under wxMSW (MinGW) as well as wxGTK with version 2.9.4.
