Allow DOM events to be ignored by setting codemirrorIgnore

Issue #1681