Clear selection when codeEdit is started