adapting to widgetimpl extensions and iPhone OS 3.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -141,7 +141,7 @@ protected :
|
||||
|
||||
- (void) keyDown:(NSEvent*) event
|
||||
{
|
||||
wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( [self delegate] );
|
||||
wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( (WXWidget) [self delegate] );
|
||||
lastKeyDownEvent = event;
|
||||
if ( impl == NULL || !impl->DoHandleKeyEvent(event) )
|
||||
[super keyDown:event];
|
||||
@@ -150,14 +150,14 @@ protected :
|
||||
|
||||
- (void) keyUp:(NSEvent*) event
|
||||
{
|
||||
wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( [self delegate] );
|
||||
wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( (WXWidget) [self delegate] );
|
||||
if ( impl == NULL || !impl->DoHandleKeyEvent(event) )
|
||||
[super keyUp:event];
|
||||
}
|
||||
|
||||
- (void) flagsChanged:(NSEvent*) event
|
||||
{
|
||||
wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( [self delegate] );
|
||||
wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( (WXWidget) [self delegate] );
|
||||
if ( impl == NULL || !impl->DoHandleKeyEvent(event) )
|
||||
[super flagsChanged:event];
|
||||
}
|
||||
@@ -170,7 +170,7 @@ protected :
|
||||
|
||||
- (void) insertText:(id) str
|
||||
{
|
||||
wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( [self delegate] );
|
||||
wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( (WXWidget) [self delegate] );
|
||||
if ( impl == NULL || lastKeyDownEvent==nil || !impl->DoHandleCharEvent(lastKeyDownEvent, str) )
|
||||
{
|
||||
[super insertText:str];
|
||||
|
Reference in New Issue
Block a user