Skip to content

Commit a8c2c60

Browse files
authored
feat: close VulkanFeaturesWindow with shortcut (#245)
1 parent 20028cc commit a8c2c60

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lact-gui/src/app/root_stack/info_page/vulkan_info/feature_window/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ mod imp {
9393
}),
9494
);
9595

96+
self.search_entry
97+
.connect_stop_search(clone!(@weak obj as win => move |_search| {
98+
win.close();
99+
}));
100+
96101
self.features_factory.connect_setup(|_, list_item| {
97102
let feature = VulkanFeature::default();
98103
let row = VulkanFeatureRow::new(feature);

lact-gui/ui/vulkan_features_window.blp

+9
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ template $VulkanFeaturesWindow: Window {
1919
}
2020
}
2121
}
22+
23+
ShortcutController {
24+
scope: global;
25+
26+
Shortcut {
27+
trigger: "Escape|<Ctrl>w";
28+
action: "action(window.close)";
29+
}
30+
}
2231
}
2332

2433
SignalListItemFactory features_factory {}

0 commit comments

Comments
 (0)