mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 02:09:00 +00:00
menu: the review's words are the ones its view asked for: Start with Current shortcuts and Defaults, Include, Record a key
This commit is contained in:
@@ -187,9 +187,7 @@ fn binding_text(say: &Say, env: &Env<'_>, b: &Binding, home: Option<&craft_keyma
|
||||
fn start_choice(ui: &mut Ui, say: &Say, start: Start) -> Option<Act> {
|
||||
let w = say.words();
|
||||
let after = SideLabel::new().layout(FieldLayout::After);
|
||||
// PLAN: words.rs has no name for the Start group; shortcuts-w4 owns the word.
|
||||
let name = format!("{} / {}", w.start_current.as_str(), w.start_defaults.as_str());
|
||||
let group = RadioGroup::new(name, Bind::given(start == Start::Defaults)).show(ui, |ui, cx| {
|
||||
let group = RadioGroup::new(w.start.clone(), Bind::given(start == Start::Defaults)).show(ui, |ui, cx| {
|
||||
cx.labelled(ui, "current", w.start_current.clone(), after.clone(), Radio::new(false));
|
||||
cx.labelled(ui, "defaults", w.start_defaults.clone(), after.clone(), Radio::new(true));
|
||||
});
|
||||
|
||||
@@ -200,14 +200,15 @@ craft_ui::words! {
|
||||
the_shortcuts_could_not_be_removed: "keyboardShortcuts.theShortcutsCouldNotBeRemoved" = "the shortcuts could not be removed";
|
||||
copy_report: "keyboardShortcuts.copyReport" = "Copy Report";
|
||||
done: "keyboardShortcuts.done" = "Done";
|
||||
start_current: "keyboardShortcuts.startCurrent" = "Start from the current shortcuts";
|
||||
start_defaults: "keyboardShortcuts.startDefaults" = "Start from the defaults";
|
||||
include_entry: template "keyboardShortcuts.includeEntry" = "Import {item}";
|
||||
start: "keyboardShortcuts.start" = "Start";
|
||||
start_current: "keyboardShortcuts.startCurrent" = "Current shortcuts";
|
||||
start_defaults: "keyboardShortcuts.startDefaults" = "Defaults";
|
||||
include_entry: "keyboardShortcuts.includeEntry" = "Include";
|
||||
search_entries: "keyboardShortcuts.searchEntries" = "Search entries";
|
||||
no_equivalent: "keyboardShortcuts.noEquivalent" = "No equivalent";
|
||||
not_read: "keyboardShortcuts.notRead" = "Not read";
|
||||
keys_section: "keyboardShortcuts.keysSection" = "Keys";
|
||||
record_a_key: "keyboardShortcuts.recordAKey" = "Record a Key";
|
||||
record_a_key: "keyboardShortcuts.recordAKey" = "Record a key";
|
||||
press_a_key_without_modifiers: "keyboardShortcuts.pressAKeyWithoutModifiers" = "Press a key without modifiers";
|
||||
undecided_key: template "keyboardShortcuts.undecidedKey" = "key code {n} is not known";
|
||||
undecided_modifier: template "keyboardShortcuts.undecidedModifier" = "modifier code {n} is not known";
|
||||
|
||||
Reference in New Issue
Block a user