Export the crossterm key types (#457)

Export `crossterm::event::{KeyCode, KeyModifiers}` as our own.
This way users of the library don't have to import crossterm with the
same version explicitly to set their own keybindings.

Closes #456
This commit is contained in:
Stefan Holderbach 2022-08-03 11:52:01 +02:00 committed by GitHub
parent b750db6516
commit d29730a809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,3 +263,6 @@ pub use utils::{
get_reedline_keybinding_modifiers, get_reedline_keycodes, get_reedline_prompt_edit_modes,
get_reedline_reedline_events,
};
// Reexport the key types to be independent from an explicit crossterm dependency.
pub use crossterm::event::{KeyCode, KeyModifiers};