Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Breaking changes for crossterm, renaming
Breaking change, use crossterm 0.25.0: - Lots of new variants are added to KeyEvent, like KeyEventKind, and KeyEventState. This release is a breaking change. So I took this opportunity to upgrade lots of things in the library. The next release of this library will also be a breaking change (semver). - KeyboardEnhancementFlags::DISAMBIGUATE_ESCAPE_CODES and PushKeyboardEnhancementFlags are added to make it possible to scan even more extensive key codes. - Almost all these new changes are largely ignored. However, the conversion from KeyEvent to Keypress takes all of these into account. The biggest change is that only KeyEvents that have KeyEventKind::Press are even considered for conversion to Keypress (otherwise the `TryFrom<KeyEvent> for Keypress` fails). Upgrade all deps: - Run cargo upgrade to get all the latest deps, since crossterm introduced a breaking change anyway. Big renaming effort: - The naming convention that I've adopted in the codebase is when there is an existing symbol that collides w/ something that is already taken or widely used (eg: Box, or Event), then the `TW` prefix is added to disambiguate it as belonging to this library. - TWBox -> FlexBox - TWInputEvent -> InputEvent - Add serde support to Pair, Percent, Size, etc - Clean up and simplify all the struct names and enum and their variants in keypress.rs, since there have grown to be so many, adapting those from crossterm::event. The biggest one is probably changing NonMidifierKey to Key. And adding clarification to ModifierKeys and renaming it to ModifierKeysMask Fix #20
- Loading branch information