FIX: ensures keyboard event is not propagated when using c shortcut (#9441)

FIX: ensures keyboard event is not propagated when using c shortcut (#9441)

diff --git a/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js b/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js
index 9a3aff8..2ce05f4 100644
--- a/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js
+++ b/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js
@@ -283,11 +283,13 @@ export default {
     });
   },
 
-  createTopic() {
+  createTopic(event) {
     if (!(this.currentUser && this.currentUser.can_create_topic)) {
       return;
     }
 
+    event.preventDefault();
+
     // If the page has a create-topic button, use it for context sensitive attributes like category
     let $createTopicButton = $("#create-topic");
     if ($createTopicButton.length) {

GitHub sha: 1168d5c7

This commit appears in #9441 which was approved by davidtaylorhq. It was merged by jjaffeux.