mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-04-28 06:21:23 +00:00
feat(pwsp-gui): slash now toggles search focus
This commit is contained in:
+7
-1
@@ -47,7 +47,13 @@ impl SoundpadGui {
|
||||
|
||||
// Focus search field
|
||||
if self.key_pressed(ctx, Key::Slash) {
|
||||
self.app_state.force_focus_search = true;
|
||||
if search_focused {
|
||||
ctx.memory_mut(|m| {
|
||||
m.request_focus(Id::NULL);
|
||||
});
|
||||
} else {
|
||||
self.app_state.force_focus_search = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Play selected file on Enter
|
||||
|
||||
Reference in New Issue
Block a user