🌐 About keybind actions
This commit is contained in:
@@ -6,6 +6,12 @@
|
|||||||
"key": "Shortcut key",
|
"key": "Shortcut key",
|
||||||
"action": "Action",
|
"action": "Action",
|
||||||
"keybinds": "Keybinds",
|
"keybinds": "Keybinds",
|
||||||
|
"actions": {
|
||||||
|
"toggleTheme": "Toggle light/dark mode",
|
||||||
|
"focusSearchBar": "Focus on search bar",
|
||||||
|
"openDocker": "Open docker Widget",
|
||||||
|
"toggleEdit": "Toggle Edit Mode"
|
||||||
|
},
|
||||||
"metrics": {
|
"metrics": {
|
||||||
"configurationSchemaVersion": "Configuration schema version",
|
"configurationSchemaVersion": "Configuration schema version",
|
||||||
"configurationsCount": "Available configurations",
|
"configurationsCount": "Available configurations",
|
||||||
@@ -15,4 +21,5 @@
|
|||||||
"locales": "Configured I18n locales",
|
"locales": "Configured I18n locales",
|
||||||
"experimental_disableEditMode": "<b>EXPERIMENTAL</b>: Disable edit mode"
|
"experimental_disableEditMode": "<b>EXPERIMENTAL</b>: Disable edit mode"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -55,10 +55,10 @@ export const AboutModal = ({ opened, closeModal, newVersionAvailable }: AboutMod
|
|||||||
const { t } = useTranslation(['common', 'layout/modals/about']);
|
const { t } = useTranslation(['common', 'layout/modals/about']);
|
||||||
|
|
||||||
const keybinds = [
|
const keybinds = [
|
||||||
{ key: 'Mod + J', shortcut: 'Toggle light/dark mode' },
|
{ key: 'Mod + J', shortcut: t('layout/modals/about:actions.toggleTheme') },
|
||||||
{ key: 'Mod + K', shortcut: 'Focus on search bar' },
|
{ key: 'Mod + K', shortcut: t('layout/modals/about:actions.focusSearchBar') },
|
||||||
{ key: 'Mod + B', shortcut: 'Open docker widget' },
|
{ key: 'Mod + B', shortcut: t('layout/modals/about:actions.openDocker') },
|
||||||
{ key: 'Mod + E', shortcut: 'Toggle Edit mode' },
|
{ key: 'Mod + E', shortcut: t('layout/modals/about:actions.toggleEdit') },
|
||||||
];
|
];
|
||||||
const rows = keybinds.map((element) => (
|
const rows = keybinds.map((element) => (
|
||||||
<tr key={element.key}>
|
<tr key={element.key}>
|
||||||
|
|||||||
Reference in New Issue
Block a user