Luke Hart wrote:
Phil Martin wrote:I'm not getting any wxEVT_CHAR messages, so basing any character handling on them is not going to be very effective. Controls aren't handled by my key press handling code, so they can do anything they want to with events.Luke Hart wrote:Phil Martin wrote:Do you know of something that uses it? The entire of the key press frame work only deals with Key Downs and Ups (as it did under Camelot). I've never needed to handle wxEVT_CHARs, Key down auto-repeats.What about wxEVT_CHAR? PhilLukeHot key detection only uses up and down events because by definition hotkeys are always a single keypress. But getting character data must be done via wxEVT_CHAR so that we get unicode data through whatever input method the user is using.Controls (text edit controls in particular) must get wxEVT_CHARs and so must the Text tool (via the view or application keypress handler).PhilLuke
Luke,Can you add a comment block above FilterEvent, please, explaining /why/ it's doing what it does? It will be difficult to maintain in future without some written explanation.
Ta, Phil 8-)