UX+Accessibility: focus on map when appropriate

This commit is contained in:
Pieter Vander Vennet 2023-11-03 02:24:33 +01:00
parent 3a915bdf25
commit bb328d9724
3 changed files with 25 additions and 2 deletions

View file

@ -93,7 +93,7 @@ export default class Hotkeys {
})
} else if (key["nomod"] !== undefined) {
document.addEventListener(type, function (event) {
if (Hotkeys.textElementSelected(event)) {
if (Hotkeys.textElementSelected(event) && keycode !== "Escape") {
// A text element is selected, we don't do anything special
return
}

View file

@ -370,7 +370,7 @@
<IfHidden condition={state.guistate.backgroundLayerSelectionIsOpened}>
<!-- background layer selector -->
<FloatOver
<FloatOver
on:close={() => {
state.guistate.backgroundLayerSelectionIsOpened.setData(false)
}}