fix: keyboard shortcut text indicating what works where

This commit is contained in:
kolaente 2022-03-02 22:05:16 +01:00
parent f4b0e68322
commit cf5460d298
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 9 additions and 3 deletions

View file

@ -6,9 +6,13 @@
<message class="mb-4" v-if="s.available">
{{
typeof s.available === 'undefined' ?
$t('keyboardShortcuts.allPages') :
(
s.available($route)
? $t('keyboardShortcuts.currentPageOnly')
: $t('keyboardShortcuts.allPages')
: $t('keyboardShortcuts.somePagesOnly')
)
}}
</message>
@ -38,6 +42,7 @@ import {KEYBOARD_SHORTCUTS_ACTIVE} from '@/store/mutation-types'
import {KEYBOARD_SHORTCUTS as shortcuts} from './shortcuts'
const store = useStore()
function close() {
store.commit(KEYBOARD_SHORTCUTS_ACTIVE, false)
}

View file

@ -785,6 +785,7 @@
"general": "General",
"allPages": "These shortcuts work on all pages.",
"currentPageOnly": "These shortcuts work only on the current page.",
"somePagesOnly": "These shortcuts work only on some pages.",
"toggleMenu": "Toggle The Menu",
"quickSearch": "Open the search/quick action bar",
"then": "then",