Fixing 'NSEvent.otherEventWithType' method