@ -52,6 +52,10 @@ export const FileLabel = (props: FileLabelProps) => {
editModeOff(labelRef.current.innerText)
labelRef.current.innerText = file.name
}
if (event.which === 27) {
event.preventDefault()
const handleEditBlur = (event: React.SyntheticEvent) => {
@ -469,7 +469,7 @@ export function Workspace() {
return {
...prevState,
focusContext: {element: path, x: pageX, y: pageY, type},
focusEdit: {...prevState.focusEdit, lastEdit: content},
focusEdit: {...prevState.focusEdit, element: null, lastEdit: content},
showContextMenu: prevState.focusEdit.element !== path
})