cursor should move on shift-home and shift-end