diff --git a/src/lime/_internal/backend/native/NativeApplication.hx b/src/lime/_internal/backend/native/NativeApplication.hx index 5b7ccee94..f8e506e99 100644 --- a/src/lime/_internal/backend/native/NativeApplication.hx +++ b/src/lime/_internal/backend/native/NativeApplication.hx @@ -739,12 +739,12 @@ class NativeApplication @:keep /*private*/ class KeyEventInfo { - public var keyCode:Float; + public var keyCode: #if neko Float #else Int #end; public var modifier:Int; public var type:KeyEventType; public var windowID:Int; - public function new(type:KeyEventType = null, windowID:Int = 0, keyCode:Float = 0, modifier:Int = 0) + public function new(type:KeyEventType = null, windowID:Int = 0, keyCode:#if neko Float #else Int #end = 0, modifier:Int = 0) { this.type = type; this.windowID = windowID;