Auto protect read-only file against input and toggle editable from tab or context menu.