You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Tab behavior is already defined in multi_select.rs#L249, but the change would likely be in match term.read_key() redefining the behavior of Key::Tab and Key::BackTab to select and move to the next line or back and unselect respectively e.g.
match term.read_key()? {Key::Tab => {
checked[sel] = !checked[sel];if sel == !0{
sel = 0;}else{
sel = (sel asu64 + 1).rem(self.items.len()asu64)asusize;}}Key::BackTab => {if sel == !0{
sel = self.items.len() - 1;}else{
sel = ((sel asi64 - 1 + self.items.len()asi64)
% (self.items.len()asi64))asusize;}
checked[sel] = !checked[sel];}Key::ArrowDown | Key::Char('j') => {if sel == !0{
sel = 0;}else{
sel = (sel asu64 + 1).rem(self.items.len()asu64)asusize;}}Key::ArrowUp | Key::Char('k') => {if sel == !0{
sel = self.items.len() - 1;}else{
sel = ((sel asi64 - 1 + self.items.len()asi64)
% (self.items.len()asi64))asusize;}}
...
}
Is the project open to changing this behavior?
The text was updated successfully, but these errors were encountered:
The
Tab
behavior is already defined in multi_select.rs#L249, but the change would likely be inmatch term.read_key()
redefining the behavior ofKey::Tab
andKey::BackTab
to select and move to the next line or back and unselect respectively e.g.Is the project open to changing this behavior?
The text was updated successfully, but these errors were encountered: