Opened 23 months ago

Last modified 22 months ago

#14821 new defect

wxAuiNotebook steals key events intended for children

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

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 (1)

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

Download all attachments as: .zip

Change History (2)

Changed 23 months ago by LukasK

Example application for testing the changes between r72662 and r72664

comment:1 Changed 22 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.