EventFilter for code textedits