Set tabindex -1, use codemirror's events