[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

Re: [XaraXtreme-dev] Re: [XaraXtreme-commits] Commit Complete

Luke Hart wrote:

Phil Martin wrote:

What about wxEVT_CHAR?


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.


Hot 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).