forgot to pass event to isInCodeEditor