Include wxWANTS_CHARS style unless wxTE_READONLY is specified
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -240,6 +240,11 @@ bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& va
|
||||
const wxValidator& validator, const wxString& name)
|
||||
{
|
||||
style |= wxVSCROLL;
|
||||
|
||||
// If read-only, the programmer probably wants to retain dialog keyboard navigation.
|
||||
// If you don't, then pass wxWANTS_CHARS explicitly.
|
||||
if ((style & wxTE_READONLY) == 0)
|
||||
style |= wxWANTS_CHARS;
|
||||
|
||||
if (!wxControl::Create(parent, id, pos, size,
|
||||
style|wxFULL_REPAINT_ON_RESIZE,
|
||||
|
Reference in New Issue
Block a user