We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27c2904 commit fd68722Copy full SHA for fd68722
1 file changed
pcd-website/src/components/MapView.vue
@@ -143,9 +143,12 @@ function handleKeydown(e: KeyboardEvent) {
143
marker?.getElement()?.focus();
144
} else {
145
const mapEl = document.getElementById('map');
146
- if (mapEl && (mapEl === document.activeElement || mapEl.contains(document.activeElement))) {
+ if (mapEl && mapEl.contains(document.activeElement) && document.activeElement !== mapEl) {
147
e.preventDefault();
148
mapEl.focus();
149
+ } else if (mapEl && document.activeElement === mapEl) {
150
+ e.preventDefault();
151
+ document.getElementById('burger-btn')?.focus();
152
}
153
154
} else if (!isTextInput && /^[0-9]$/.test(e.key)) {
0 commit comments