Skip to content

Commit

Permalink
Further adjust display of keyboard shortcuts (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Apr 11, 2019
1 parent d1e7dae commit 94823c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 4 additions & 2 deletions config/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"no": "No",
"loading": "Loading...",
"cancel": "Cancel",
"authNecessary": "Authentication necessary."
"authNecessary": "Authentication necessary.",
"or": "or"
},
"navbar": {
"feedback": "Feedback",
Expand Down Expand Up @@ -252,7 +253,8 @@
"addToMapping": "zum Mapping hinzufügen",
"loading": "Lade...",
"cancel": "Abbrechen",
"authNecessary": "Authentifizierung notwendig."
"authNecessary": "Authentifizierung notwendig.",
"or": "oder"
},
"navbar": {
"feedback": "Feedback",
Expand Down
10 changes: 2 additions & 8 deletions src/components/TheSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,8 @@
<p
v-for="shortcut in config.shortcuts"
:key="`settingsModal-shortcuts-${shortcut.id}`">
<b>{{ $util.prefLabel(shortcut) || shortcut.action }}</b>
<ul>
<li
v-for="(keys, index) in shortcut.keys.split(',')"
:key="`settingsModal-shortcuts-${shortcut.id}-keys-${index}`">
<span v-html="keys.split('+').map(key => `<kbd>${replaceKey(key)}</kbd>`).join(' + ')" />
</li>
</ul>
<b>{{ $util.prefLabel(shortcut) || shortcut.action }}</b><br>
<span v-html="shortcut.keys.split(',').map(keys => keys.split('+').map(key => `<kbd>${replaceKey(key)}</kbd>`).join(' + ')).join(` ${$t('general.or')} `)" />
</p>
</b-tab>
<b-tab
Expand Down

0 comments on commit 94823c6

Please # to comment.