Fixed cursor-up/down when editing text