overwrote tab and enter events in editor