Ticket #14821 (new defect)

Opened 6 months ago

Last modified 6 months ago

wxAuiNotebook steals key events intended for children

Reported by: LukasK Owned by:
Priority: normal Milestone:
Component: wxAui Version:
Keywords: wxAuiNotebook Cc:
Blocked By: Patch: no
Blocking:

Description

In revisions older than r72663, child panels of a wxAuiNotebook with the wxWANTS_CHARS-style received all key-presses, even navigation keys like Ctrl+PgDn.

Since r72664 (72663 did not compile), the wxAuiNotebook containing the panel receives the keypress as a navigation event, instead of the child panel receiving it as a keypress.

I don't know if this is an intentional change, but I can also not find a way to prevent the wxAuiNotebook from intercepting key-presses (other than an application-level filter on navigation events).

Attachments

repro_14821.cpp download (2.2 KB) - added by LukasK 6 months ago.
Example application for testing the changes between r72662 and r72664

Change History

Changed 6 months ago by LukasK

Example application for testing the changes between r72662 and r72664

Changed 6 months ago by LukasK

I tested filtering, and it seems that key-presses like Ctrl+PgDn do not even reach wxApp::FilterEvent(wxEvent&) when a wxAuiNotebook (or child?) has focus.

Note: See TracTickets for help on using tickets.