Clear editor contents with ctrl+l
This commit is contained in:
parent
806200b799
commit
f70d0c25cf
1 changed files with 5 additions and 0 deletions
|
|
@ -122,6 +122,11 @@ impl<M: Msg, S: MsgStore<M>> InnerTreeViewState<M, S> {
|
|||
self.correction = Some(Correction::MakeCursorVisible);
|
||||
Reaction::Handled
|
||||
}
|
||||
KeyCode::Char('l') if event.modifiers == KeyModifiers::CONTROL => {
|
||||
self.editor.clear();
|
||||
self.correction = Some(Correction::MakeCursorVisible);
|
||||
Reaction::Handled
|
||||
}
|
||||
_ => Reaction::NotHandled,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue