further tweak comment
This commit is contained in:
parent
159d3ab00c
commit
0981244797
1 changed files with 4 additions and 2 deletions
|
@ -76,8 +76,10 @@ impl KeymapMatcher {
|
||||||
mut dispatch_path: Vec<(usize, KeymapContext)>,
|
mut dispatch_path: Vec<(usize, KeymapContext)>,
|
||||||
) -> MatchResult {
|
) -> MatchResult {
|
||||||
let mut any_pending = false;
|
let mut any_pending = false;
|
||||||
// Collect matched bindings into an ordered list using the position in the bindings
|
// Collect matched bindings into an ordered list using the position in the matching binding first,
|
||||||
// list as the precedence
|
// and then the order the binding matched in the view tree second.
|
||||||
|
// The key is the reverse position of the binding in the bindings list so that later bindings
|
||||||
|
// match before earlier ones in the user's config
|
||||||
let mut matched_bindings: BTreeMap<usize, Vec<(usize, Box<dyn Action>)>> =
|
let mut matched_bindings: BTreeMap<usize, Vec<(usize, Box<dyn Action>)>> =
|
||||||
Default::default();
|
Default::default();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue