Let codemirror properly handle events when the query is too big - #3043