Finally fix issue where code from editor would be copied on mouse release