FIX: Make mobile back/forward keybinds work for anons (#12512)

FIX: Make mobile back/forward keybinds work for anons (#12512)

You don’t need to be logged in to browse a forum in Discourse Hub :smiley:

diff --git a/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js b/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js
index 4d724e4..5b2b230 100644
--- a/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js
+++ b/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js
@@ -23,10 +23,10 @@ const DEFAULT_BINDINGS = {
   "shift+c": { handler: "focusComposer" },
   "ctrl+f": { handler: "showPageSearch", anonymous: true },
   "command+f": { handler: "showPageSearch", anonymous: true },
-  "command+left": { handler: "webviewKeyboardBack" },
-  "command+[": { handler: "webviewKeyboardBack" },
-  "command+right": { handler: "webviewKeyboardForward" },
-  "command+]": { handler: "webviewKeyboardForward" },
+  "command+left": { handler: "webviewKeyboardBack", anonymous: true },
+  "command+[": { handler: "webviewKeyboardBack", anonymous: true },
+  "command+right": { handler: "webviewKeyboardForward", anonymous: true },
+  "command+]": { handler: "webviewKeyboardForward", anonymous: true },
   "mod+p": { handler: "printTopic", anonymous: true },
   d: { postAction: "deletePost" },
   e: { postAction: "editPost" },

GitHub sha: 9eb7c370

This commit appears in #12512 which was approved by pmusaraj. It was merged by CvX.