Merge branch 'develop'

This commit is contained in:
Pieter Vander Vennet 2025-05-03 12:16:58 +02:00
commit c7527232bc
12 changed files with 820 additions and 23 deletions

View file

@ -111,7 +111,7 @@ export default class AddPrefixToTagRenderingConfig extends DesugaringStep<Questi
return <QuestionableTagRenderingConfigJson>{
...json,
id: this._prefix + "_" + json.id,
id: this._prefix.replace(/[^a-zA-Z0-9_]/, "_") + "_" + json.id,
question: this.updateTranslatable(json.question),
questionHint: this.updateTranslatable(json.questionHint),

View file

@ -7,6 +7,8 @@ import LayerState from "../../Logic/State/LayerState"
import { Store } from "../../Logic/UIEventSource"
import { FeatureSource, IndexedFeatureSource } from "../../Logic/FeatureSource/FeatureSource"
import { Tag } from "../../Logic/Tags/Tag"
import Hotkeys from "../../UI/Base/Hotkeys"
import Translations from "../../UI/i18n/Translations"
export class WithLayoutSourceState extends WithSelectedElementState {
readonly layerState: LayerState
@ -50,6 +52,15 @@ export class WithLayoutSourceState extends WithSelectedElementState {
this.floors = WithLayoutSourceState.initFloors(this.featuresInView)
this.initFilters()
Hotkeys.RegisterHotkey(
{ nomod: "n" },
Translations.t.hotkeyDocumentation.addNew,
() => {
this.openNewDialog()
}
)
}
/**
@ -121,4 +132,5 @@ export class WithLayoutSourceState extends WithSelectedElementState {
this.featureProperties.trackFeature(feature)
this.selectedElement.setData(feature)
}
}