aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation
diff options
context:
space:
mode:
Diffstat (limited to 'Map/Presentation')
-rw-r--r--Map/Presentation/Base Components/EvolutionPicker/EvolutionPicker.swift4
-rw-r--r--Map/Presentation/Base Components/EvolutionPicker/GlassEvolutionPicker.swift4
2 files changed, 8 insertions, 0 deletions
diff --git a/Map/Presentation/Base Components/EvolutionPicker/EvolutionPicker.swift b/Map/Presentation/Base Components/EvolutionPicker/EvolutionPicker.swift
index 5983745..42edfb5 100644
--- a/Map/Presentation/Base Components/EvolutionPicker/EvolutionPicker.swift
+++ b/Map/Presentation/Base Components/EvolutionPicker/EvolutionPicker.swift
@@ -53,10 +53,14 @@ struct EvolutionPicker: View {
.foregroundColor(isShowingMenu ? .Theme.UI.background : .Theme.UI.foreground)
}
}
+ .help("map_editor.stage_picker.help")
.padding(.horizontal, Dimensions.Spacing.regular)
.padding(.vertical, Dimensions.Spacing.cozy)
}
)
+ .keyboardShortcut(
+ "y", modifiers: EventModifiers([.command])
+ )
.buttonStyle(.borderless)
.background(isShowingMenu ? Color.Theme.UI.foreground : Color.clear)
.cornerRadius(Dimensions.EvolutionPicker.radius)
diff --git a/Map/Presentation/Base Components/EvolutionPicker/GlassEvolutionPicker.swift b/Map/Presentation/Base Components/EvolutionPicker/GlassEvolutionPicker.swift
index 6d2f6c4..7d5ced2 100644
--- a/Map/Presentation/Base Components/EvolutionPicker/GlassEvolutionPicker.swift
+++ b/Map/Presentation/Base Components/EvolutionPicker/GlassEvolutionPicker.swift
@@ -50,10 +50,14 @@ struct GlassEvolutionPicker: View {
.offset(CGSize(width: 0, height: Dimensions.EvolutionPicker.controlSpacing))
}
}
+ .help("map_editor.stage_picker.help")
.padding(.horizontal, Dimensions.Spacing.regular)
.padding(.vertical, Dimensions.Spacing.cozy)
}
)
+ .keyboardShortcut(
+ "y", modifiers: EventModifiers([.command])
+ )
.buttonStyle(.glass)
.buttonBorderShape(.capsule)
.cornerRadius(Dimensions.EvolutionPicker.radius)