FIX: stops bookmark keybaod event to be propagated into modal (#9457)

FIX: stops bookmark keybaod event to be propagated into modal (#9457)

diff --git a/app/assets/javascripts/discourse/controllers/bookmark.js b/app/assets/javascripts/discourse/controllers/bookmark.js
index f9bf306..ec384d5 100644
--- a/app/assets/javascripts/discourse/controllers/bookmark.js
+++ b/app/assets/javascripts/discourse/controllers/bookmark.js
@@ -1,6 +1,5 @@
 import { and } from "@ember/object/computed";
 import { isPresent } from "@ember/utils";
-import { next } from "@ember/runloop";
 import Controller from "@ember/controller";
 import { Promise } from "rsvp";
 import ModalFunctionality from "discourse/mixins/modal-functionality";
@@ -77,10 +76,6 @@ export default Controller.extend(ModalFunctionality, {
 
     if (this.editingExistingBookmark()) {
       this.initializeExistingBookmarkData();
-    } else {
-      // make sure the input is cleared, otherwise the keyboard shortcut to toggle
-      // bookmark for post ends up in the input
-      next(() => this.set("model.name", null));
     }
   },
 
diff --git a/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js b/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js
index 2ce05f4..498c920 100644
--- a/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js
+++ b/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js
@@ -174,7 +174,10 @@ export default {
     this.pause(Object.keys(combinations));
   },
 
-  toggleBookmark() {
+  toggleBookmark(event) {
+    event.preventDefault();
+    event.stopPropagation();
+
     this.sendToSelectedPost("toggleBookmark");
     this.sendToTopicListItemView("toggleBookmark");
   },

GitHub sha: 17c0c965

This commit appears in #9457 which was merged by jjaffeux.