FIX: Do not incorrectly add topic bookmark on Escape (PR #10088)

  • The first post was showing as bookmarked incorrectly after pressing f to open the topic modal then pressing escape to cancel without saving, because the closeWithoutSaving option was not being respected.
  • Also re-introduce the enter shortcut when the name input is focused to saveAndClose the bookmark modal by pressing enter.

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/cannot-remove-bookmark-from-post-icon-after-esc/155149/5