fix closing issue when pointer-events for CodeMirror are exposed

This fixes https://github.com/zaggino/brackets-git/issues/447

Brackets-Git enables https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events over the CodeMirror

cc @RaymondLim, @MiguelCastillo