From 8c223787378fd73c4203124c5bab92310615a837 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Thu, 22 May 2008 18:19:43 +0000 Subject: [PATCH] Also allow UP and DOWN if we reached max number of characters, part of [ 1947652 ] Improves keyboard behavior in wxTextCtrl on Mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/textctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index 2f76bf0fb1..b162a58860 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -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 ) { -- 2.45.2