From d0cf780ea22cb71bb7919ab6706ac8c6d57f5a8d Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Mon, 3 Feb 2020 17:47:48 -0500 Subject: [PATCH] Show Ctrl instead of Command for shortcuts non-Apple platforms --- layouts/default.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/layouts/default.vue b/layouts/default.vue index 0e44bca59..ba1973406 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -566,19 +566,19 @@
- ⌘ G + {{ getSpecialKey() }} G
- ⌘ S + {{ getSpecialKey() }} S
- ⌘ K + {{ getSpecialKey() }} K
- ⌘ L + {{ getSpecialKey() }} L
@@ -677,6 +677,9 @@ export default { }, methods: { + getSpecialKey() { + return (/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)) ? "⌘" : "Ctrl"; + }, linkActive(path) { return { "nuxt-link-exact-active": this.$route.path === path,