Clear editor contents with ctrl+l

This commit is contained in:
Joscha 2022-08-02 23:14:27 +02:00
parent 806200b799
commit f70d0c25cf

View file

@ -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,
}
}