- one single method for sending char events from a NSString
- adding insertText override for multiline fields as char events went missing after r74945 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -586,6 +586,15 @@ bool wxNSTextViewControl::CanFocus() const
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxNSTextViewControl::insertText(NSString* text, WXWidget slf, void *_cmd)
|
||||
{
|
||||
if ( m_lastKeyDownEvent ==NULL || !DoHandleCharEvent(m_lastKeyDownEvent, text) )
|
||||
{
|
||||
wxOSX_TextEventHandlerPtr superimpl = (wxOSX_TextEventHandlerPtr) [[slf superclass] instanceMethodForSelector:(SEL)_cmd];
|
||||
superimpl(slf, (SEL)_cmd, text);
|
||||
}
|
||||
}
|
||||
|
||||
wxString wxNSTextViewControl::GetStringValue() const
|
||||
{
|
||||
if (m_textView)
|
||||
|
Reference in New Issue
Block a user