summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa/ecore_cocoa.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_cocoa/ecore_cocoa.m')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa.m b/src/lib/ecore_cocoa/ecore_cocoa.m
index 7400eb9cbb..1c9c20f358 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa.m
@@ -90,8 +90,8 @@ ecore_cocoa_shutdown(void)
90 return _ecore_cocoa_init_count; 90 return _ecore_cocoa_init_count;
91} 91}
92 92
93static unsigned int 93unsigned int
94_ecore_cocoa_event_modifiers(NSUInteger mod) 94ecore_cocoa_event_modifiers(NSUInteger mod)
95{ 95{
96 unsigned int modifiers = 0; 96 unsigned int modifiers = 0;
97 97
@@ -134,7 +134,7 @@ _ecore_cocoa_event_key(NSEvent *event,
134 } 134 }
135 135
136 ev->timestamp = time; 136 ev->timestamp = time;
137 ev->modifiers = _ecore_cocoa_event_modifiers([event modifierFlags]); 137 ev->modifiers = ecore_cocoa_event_modifiers([event modifierFlags]);
138 138
139 ev->keycode = event.keyCode; 139 ev->keycode = event.keyCode;
140 ev->string = [keycharRaw cStringUsingEncoding:NSUTF8StringEncoding]; 140 ev->string = [keycharRaw cStringUsingEncoding:NSUTF8StringEncoding];
@@ -334,7 +334,7 @@ _ecore_cocoa_feed_events(void *anEvent)
334 334
335 ev->window = (Ecore_Window)window.ecore_window_data; 335 ev->window = (Ecore_Window)window.ecore_window_data;
336 ev->event_window = ev->window; 336 ev->event_window = ev->window;
337 ev->modifiers = 0; /* FIXME: keep modifier around. */ 337 ev->modifiers = ecore_cocoa_event_modifiers([event modifierFlags]);
338 ev->timestamp = time; 338 ev->timestamp = time;
339 if (dy != 0) 339 if (dy != 0)
340 { 340 {