Fix interactions with editing and cursor movement.