Merge pull request #156 from adrianN/patch-1

Ignore keys properly in SelectView::on_event
This commit is contained in:
Alexandre Bury 2017-10-26 11:53:40 -07:00 committed by GitHub
commit 3fc06ef048

View File

@ -437,6 +437,8 @@ impl<T: 'static> SelectView<T> {
// Apply modulo in case we have a hit // Apply modulo in case we have a hit
// from the chained iterator // from the chained iterator
self.focus.set(i % self.items.len()); self.focus.set(i % self.items.len());
} else {
return EventResult::Ignored;
} }
} }
_ => return EventResult::Ignored, _ => return EventResult::Ignored,