Fix function signature of SystemEvent class (#4563)

This commit is contained in:
jiaxin.lai
2019-06-06 19:15:08 +08:00
committed by Weiliang Wang
parent a8b3e5a283
commit 6928a417ed
@@ -88,7 +88,7 @@ export class SystemEvent extends EventTarget {
inputManager.setAccelerometerInterval(interval);
}
public on (type: SystemEventType.KEY_DOWN | SystemEventType.KEY_UP, callback: (event: EventKeyboard) => void);
public on (type: SystemEventType.KEY_DOWN | SystemEventType.KEY_UP, callback: (event: EventKeyboard) => void, target?: Object);
public on (type: string, callback: Function, target?: Object) {
if (CC_EDITOR) {