Skip to content

Commit e6fb280

Browse files
committed
Add keyboard shortcut to focus map when 'L' is pressed
1 parent 396cc88 commit e6fb280

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pcd-website/src/components/MapView.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ function handleKeydown(e: KeyboardEvent) {
225225
e.preventDefault();
226226
listOpen.value = !listOpen.value;
227227
if (listOpen.value) selectedNode.value = null;
228+
} else if (!isTextInput && (e.key === 'L' || e.key === 'l')) {
229+
e.preventDefault();
230+
document.getElementById('map')?.focus();
228231
}
229232
}
230233

0 commit comments

Comments
 (0)