Improve logic for reused bindings, add docs.

This commit is contained in:
Conrad Irwin 2024-01-22 09:51:21 -07:00
parent 6c4d024237
commit 0903d29ab3
3 changed files with 100 additions and 26 deletions

View file

@ -94,7 +94,7 @@ impl KeystrokeMatcher {
/// - KeyMatch::None => No match is valid for this key given any pending keystrokes.
/// - KeyMatch::Pending => There exist bindings that is still waiting for more keys.
/// - KeyMatch::Some(matches) => One or more bindings have received the necessary key presses.
#[derive(Debug)]
#[derive(Debug, PartialEq)]
pub enum KeyMatch {
None,
Pending,