Skip to content

Inconsistent behaviour of Esc on keyboard #3279

Description

@schweigisito

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions