diff --git a/src/App.jsx b/src/App.jsx index 694a77d2..e44b7ec7 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -169,6 +169,12 @@ const App = () => { return; } + if (e.key === '/') { + toggleDeDxMarkers(); + e.preventDefault(); + return; + } + const layerId = layerShortcuts[e.key.toLowerCase()]; if (layerId && window.hamclockLayerControls) { const isEnabled = window.hamclockLayerControls.layers?.find((l) => l.id === layerId)?.enabled ?? false; diff --git a/src/components/KeybindingsPanel.jsx b/src/components/KeybindingsPanel.jsx index e950de2f..441a093e 100644 --- a/src/components/KeybindingsPanel.jsx +++ b/src/components/KeybindingsPanel.jsx @@ -125,6 +125,43 @@ export const KeybindingsPanel = ({ isOpen, onClose, keybindings, nodeId }) => { {t('keybindings.panel.toggle', 'Toggle this help panel')} +
+ + {'/'} + + + {t('keybindings.panel.toggleDeDx', 'Toggle DE and DX Markers')} + +
); @@ -282,7 +319,6 @@ export const KeybindingsPanel = ({ isOpen, onClose, keybindings, nodeId }) => { display: 'flex', alignItems: 'center', gap: '12px', - gridColumn: 'span 2', }} > { > ? + { {t('keybindings.panel.toggle', 'Toggle this help panel')} +
+ + / + + + {t('keybindings.panel.toggleDeDx', 'Toggle DE and DX Markers')} + +
{/* Footer note */} diff --git a/src/lang/en.json b/src/lang/en.json index 1fd09e95..32036401 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -422,5 +422,6 @@ "keybindings.panel.title": "KEYBOARD SHORTCUTS", "keybindings.panel.description": "Press the following keys to toggle map layers:", "keybindings.panel.toggle": "Toggle this help panel", + "keybindings.panel.toggleDeDx": "Toggle DE and DX Markers", "keybindings.panel.note": "Press ESC or click outside to close this panel" }