Clear all the state when clearing KeyDispatcher
This commit is contained in:
parent
44534b926d
commit
45fef27aa1
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@ impl KeyDispatcher {
|
||||||
pub fn clear(&mut self) {
|
pub fn clear(&mut self) {
|
||||||
self.node_stack.clear();
|
self.node_stack.clear();
|
||||||
self.nodes.clear();
|
self.nodes.clear();
|
||||||
|
self.context_stack.clear();
|
||||||
|
self.focusable_node_ids.clear();
|
||||||
|
self.keystroke_matchers.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn push_node(&mut self, context: KeyContext, old_dispatcher: &mut Self) {
|
pub fn push_node(&mut self, context: KeyContext, old_dispatcher: &mut Self) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue