A platform for community discussion. Free, open, simple.
FIX: Make mobile back/forward keybinds work for anons (#12512)
Jarek Radosz9eb7c3709878
diff --git a/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js b/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.jsindex 4d724e4f53e..5b2b230fbf2 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" },