Show Ctrl instead of Command for shortcuts non-Apple platforms
This commit is contained in:
@@ -566,19 +566,19 @@
|
|||||||
<div slot="body">
|
<div slot="body">
|
||||||
<div>
|
<div>
|
||||||
<label>{{ $t("send_request") }}</label>
|
<label>{{ $t("send_request") }}</label>
|
||||||
<kbd>⌘ G</kbd>
|
<kbd>{{ getSpecialKey() }} G</kbd>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label>{{ $t("save_to_collections") }}</label>
|
<label>{{ $t("save_to_collections") }}</label>
|
||||||
<kbd>⌘ S</kbd>
|
<kbd>{{ getSpecialKey() }} S</kbd>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label>{{ $t("copy_request_link") }}</label>
|
<label>{{ $t("copy_request_link") }}</label>
|
||||||
<kbd>⌘ K</kbd>
|
<kbd>{{ getSpecialKey() }} K</kbd>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label>{{ $t("reset_request") }}</label>
|
<label>{{ $t("reset_request") }}</label>
|
||||||
<kbd>⌘ L</kbd>
|
<kbd>{{ getSpecialKey() }} L</kbd>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div slot="footer"></div>
|
<div slot="footer"></div>
|
||||||
@@ -677,6 +677,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
getSpecialKey() {
|
||||||
|
return (/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)) ? "⌘" : "Ctrl";
|
||||||
|
},
|
||||||
linkActive(path) {
|
linkActive(path) {
|
||||||
return {
|
return {
|
||||||
"nuxt-link-exact-active": this.$route.path === path,
|
"nuxt-link-exact-active": this.$route.path === path,
|
||||||
|
|||||||
Reference in New Issue
Block a user