Opened 12 years ago

Closed 11 years ago

#10930 closed defect (fixed)

wxCheckListBox breaks the jump/highlight keypress event on contextmenu

Reported by: thile Owned by:
Priority: low Milestone:
Component: wxMSW Version: stable-latest
Keywords: Menu key event wxCheckListBox Cc:
Blocked By: Blocking:
Patch: no


Right click in the window with a contextmenu.
The Context menu open.
Press a letter like K and the first item that begins with K is highlighted.
Press K key again, the next item is with K is highlighted.

Now this functionality is easily broken by the wxCheckListBox.
Open a window/dialog that has a wxCheckListBox with data in it.

Now go back and open the right click context menu.
Try and press a letter. No items are now automaticly highlighted.

I have reproduced this error with wxversion 2.8.4 and 2.8.10
Running the code on windows XP. Only a problem on PC.

Attachments (1)

project2app.cpp download (12.0 KB) - added by thile 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by thile

comment:1 Changed 12 years ago by thile

  • Keywords Menu key event wxCheckListBox added
  • Version set to 2.8.10

comment:2 Changed 12 years ago by vadz

  • Priority changed from normal to low
  • Status changed from new to confirmed
  • Version changed from 2.8.10 to 2.9-svn

I can confirm that this doesn't work but I have no idea why. The key handling is done inside Windows function ::TrackPopupMenu() and I don't know why does it stop doing it after a check list box was created.

comment:3 Changed 11 years ago by thile

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

Patch for issue #4068 also applies for this bug.

Note: See TracTickets for help on using tickets.