fw sync: command-search story chord off Cmd+K, which upstream's menu-row trial binds

The port's story command set (registered with the stories in the test binary) bound
Cmd+K, so the trial's Find command lost its chord and its row showed none. The story's
chord moves to Cmd+Shift+F; the trial is upstream's and unchanged.
This commit is contained in:
Dylan M. Taylor
2026-11-23 02:49:50 -05:00
parent dd35b1e887
commit 5d812cfefb
+3 -2
View File
@@ -74,11 +74,12 @@ fn button_loading(ui: &mut Ui, _: &mut StoryData) -> StoryOutput {
Button::new("Saving").icon(IconId::new("save")).loading(true).show(ui).into()
}
/// The command the search opener stories fire: an app command, so it is enabled in a story with no focused field.
/// The command the search opener stories fire: an app command, so it is enabled in a story with no focused field. Its
/// set is registered in every test binary that links the stories, so its chord keeps clear of the chords trials bind.
#[derive(Clone, Copy, Debug, PartialEq, Eq, craft_ui_macros::CommandSet)]
#[command(prefix = "buttonStory", story)]
enum SearchStoryCommand {
#[command(label = "Search", default = "Cmd+K")]
#[command(label = "Search", default = "Cmd+Shift+F")]
Open,
}