#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: stable-latest
Keywords: wxRichTextCtrl movement Cc:
Blocked By: Blocking:
Patch: no

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:

  1. Delete all text inside the control
  2. Press <enter> key once
  3. 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.

Change History (1)

comment:1 Changed 20 months ago by juliansmart

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r73258, thanks.

Note: See TracTickets for help on using tickets.