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:
Julian Smart
2013-10-03 12:12:07 +00:00
parent 60f8d69a98
commit 0d60cffa2e

View File

@@ -241,6 +241,11 @@ bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& va
{
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,
validator, name))