Initial Checklist
Bug Description
Pressing Esc button on keyboard doesn't behave consistently when editing or previewing a file.
Reproduction Steps
- Create new
.md file
- Press
Esc
=> OC UI closes the editor and returns to the folder view
- Open the previously created file again and edit it
- Press
Esc
=> You will get asked whether to save your changes
- Save your changes
- Press
Esc
=> Editor is not closed
Expected Outcome
Esc always either closes the editor or file preview or asks for saving changes before.
Actual Outcome
Once a file has been edited Esc doesn't close the editor anymore even if changes have already been saved.
Initial Checklist
Bug Description
Pressing
Escbutton on keyboard doesn't behave consistently when editing or previewing a file.Reproduction Steps
.mdfileEsc=> OC UI closes the editor and returns to the folder view
Esc=> You will get asked whether to save your changes
Esc=> Editor is not closed
Expected Outcome
Escalways either closes the editor or file preview or asks for saving changes before.Actual Outcome
Once a file has been edited
Escdoesn't close the editor anymore even if changes have already been saved.