enter key is not handled? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
mael15
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 539
Joined: Fri May 22, 2009 8:52 am
Location: Bremen, Germany

enter key is not handled?

Post by mael15 »

hi everyone,
i am handling key events in a class that inherits from wxFrame with

Code: Select all

Bind(wxEVT_KEY_DOWN, &MainFrame::onKeyDown, this);
it is triggert by all kinds of keys, but not the WXK_RETURN. Is this something i have to activate like in wxTextCtrl with wxTE_PROCESS_ENTER?
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: enter key is not handled?

Post by doublemax »

Try adding wxWANTS_CHARS style flag.
Use the source, Luke!
mael15
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 539
Joined: Fri May 22, 2009 8:52 am
Location: Bremen, Germany

Re: enter key is not handled?

Post by mael15 »

worked, thanx! =D>
Post Reply