Accessibility: improve keyboard only flow (see #1181); remove some legacy use of Svelte

This commit is contained in:
Pieter Vander Vennet 2023-12-06 17:27:30 +01:00
parent d1a6c11513
commit 4ee83cfe5c
35 changed files with 613 additions and 683 deletions

View file

@ -475,9 +475,12 @@ export default class ThemeViewState implements SpecialVisualizationState {
{ nomod: "Escape", onUp: true },
Translations.t.hotkeyDocumentation.closeSidebar,
() => {
if (this.previewedImage.data !== undefined) {
this.previewedImage.setData(undefined)
return
}
this.selectedElement.setData(undefined)
this.guistate.closeAll()
this.previewedImage.setData(undefined)
this.focusOnMap()
}
)