forked from MapComplete/MapComplete
Hotkeys: translations, fix location lock on mobile
This commit is contained in:
parent
ae8e46f7a6
commit
65bb91b97a
7 changed files with 40 additions and 27 deletions
|
@ -33,6 +33,7 @@ import GeoLocationHandler from "../Logic/Actors/GeoLocationHandler"
|
|||
import { GeoLocationState } from "../Logic/State/GeoLocationState"
|
||||
import Hotkeys from "./Base/Hotkeys"
|
||||
import AvailableBaseLayers from "../Logic/Actors/AvailableBaseLayers"
|
||||
import { Translation } from "./i18n/Translation"
|
||||
|
||||
/**
|
||||
* The default MapComplete GUI initializer
|
||||
|
@ -65,7 +66,7 @@ export default class DefaultGUI {
|
|||
|
||||
Hotkeys.RegisterHotkey(
|
||||
{ shift: "O" },
|
||||
"Switch to default Mapnik-OpenStreetMap background",
|
||||
Translations.t.hotkeyDocumentation.selectMapnik,
|
||||
() => {
|
||||
this.state.backgroundLayer.setData(AvailableBaseLayers.osmCarto)
|
||||
}
|
||||
|
@ -257,7 +258,7 @@ export default class DefaultGUI {
|
|||
)
|
||||
Hotkeys.RegisterHotkey(
|
||||
{ ctrl: "F" },
|
||||
"Select the search bar to search locations",
|
||||
Translations.t.hotkeyDocumentation.selectSearch,
|
||||
() => {
|
||||
search.focus()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue