mirror of
https://github.com/nushell/reedline.git
synced 2024-08-17 11:50:42 +03:00
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:
parent
b750db6516
commit
d29730a809
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user