Use tab and left tab to navigate matches

This commit is contained in:
Hilmar Gústafsson
2020-07-22 01:44:06 +02:00
committed by Kenny Levinsen
parent 76e9d267df
commit 6690cda29f
+2 -2
View File
@@ -408,13 +408,13 @@ impl<'a> Widget for Launcher<'a> {
} }
}; };
} }
keysyms::XKB_KEY_Right => { keysyms::XKB_KEY_Tab => {
if !self.matches.is_empty() && self.offset < self.matches.len() - 1 { if !self.matches.is_empty() && self.offset < self.matches.len() - 1 {
self.offset += 1; self.offset += 1;
self.dirty = true; self.dirty = true;
} }
} }
keysyms::XKB_KEY_Left => { keysyms::XKB_KEY_ISO_Left_Tab => {
if !self.matches.is_empty() && self.offset > 0 { if !self.matches.is_empty() && self.offset > 0 {
self.offset -= 1; self.offset -= 1;
self.dirty = true; self.dirty = true;