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 😃
This commit is contained in:
Jarek Radosz 2021-03-24 23:51:51 +01:00 committed by GitHub
parent e4f3a04d53
commit 9eb7c37098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" },