Add M (Mode) keyboard shortcut to arc slot hints

- Add switchModeHint constant with M key
- Include mode shortcut in all arc slot states (SeekFirst through SeekFourth)
- Addresses issue #23815 for missing keyboard shortcuts in hints
This commit is contained in:
George Peden
2025-09-10 19:13:15 -10:00
parent 23ea8ce37b
commit d524b9ceef

View File

@@ -97,27 +97,33 @@ public:
{
using enum Gui::InputHint::UserInput;
const Gui::InputHint switchModeHint {.message = tr("%1 switch mode"), .sequences = {KeyM}};
return Gui::lookupHints<SelectMode>(state(),
{
{.state = SelectMode::SeekFirst,
.hints =
{
{tr("%1 pick slot center"), {MouseLeft}},
switchModeHint,
}},
{.state = SelectMode::SeekSecond,
.hints =
{
{tr("%1 pick slot radius"), {MouseLeft}},
switchModeHint,
}},
{.state = SelectMode::SeekThird,
.hints =
{
{tr("%1 pick slot angle"), {MouseLeft}},
switchModeHint,
}},
{.state = SelectMode::SeekFourth,
.hints =
{
{tr("%1 pick slot width"), {MouseLeft}},
switchModeHint,
}},
});
}