Fix focusing and soft keyboard in edit mode