]> git.saurik.com Git - wxWidgets.git/commitdiff
Also allow UP and DOWN if we reached max number of characters, part of [ 1947652...
authorRobert Roebling <robert@roebling.de>
Thu, 22 May 2008 18:19:43 +0000 (18:19 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 22 May 2008 18:19:43 +0000 (18:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/textctrl.cpp

index 2f76bf0fb16823f01658d3d46b8ce3e69b0e609e..b162a58860088dfac34e19148f5f1615c943e413 100644 (file)
@@ -858,7 +858,7 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
     // allow navigation and deletion
     GetSelection( &from, &to );
     if ( !IsMultiLine() && m_maxLength && GetValue().length() >= m_maxLength &&
-        key != WXK_LEFT && key != WXK_RIGHT && key != WXK_TAB &&
+        key != WXK_LEFT && key != WXK_RIGHT && key != WXK_TAB && key != WXK_UP && key != WXK_DOWN && 
         key != WXK_BACK && key != WXK_DELETE && !( key == WXK_RETURN && (m_windowStyle & wxTE_PROCESS_ENTER) ) &&
         from == to )
     {