diff -r 34513f76d5a8 -r 34df61c6ec3c ui/cocoa/toolkit.m --- a/ui/cocoa/toolkit.m Fri Apr 11 17:02:19 2014 +0200 +++ b/ui/cocoa/toolkit.m Fri Apr 11 21:45:24 2014 +0200 @@ -202,6 +202,7 @@ NSWindow *activeWindow = [NSApp keyWindow]; UiEvent event; + event.eventdata = NULL; if([activeWindow class] == [UiCocoaWindow class]) { event.obj = [(UiCocoaWindow*)activeWindow object]; event.window = event.obj->window; @@ -222,6 +223,7 @@ UiEvent event; event.intval = state; + event.eventdata = NULL; if([activeWindow class] == [UiCocoaWindow class]) { event.obj = [(UiCocoaWindow*)activeWindow object]; event.window = event.obj->window;