mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
feat: close VulkanFeaturesWindow with shortcut (#245)
This commit is contained in:
parent
20028cc101
commit
a8c2c60f4a
@ -93,6 +93,11 @@ mod imp {
|
||||
}),
|
||||
);
|
||||
|
||||
self.search_entry
|
||||
.connect_stop_search(clone!(@weak obj as win => move |_search| {
|
||||
win.close();
|
||||
}));
|
||||
|
||||
self.features_factory.connect_setup(|_, list_item| {
|
||||
let feature = VulkanFeature::default();
|
||||
let row = VulkanFeatureRow::new(feature);
|
||||
|
@ -19,6 +19,15 @@ template $VulkanFeaturesWindow: Window {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ShortcutController {
|
||||
scope: global;
|
||||
|
||||
Shortcut {
|
||||
trigger: "Escape|<Ctrl>w";
|
||||
action: "action(window.close)";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SignalListItemFactory features_factory {}
|
||||
|
Loading…
Reference in New Issue
Block a user