AMythicDev/minus

Native input definitions

AMythicDev opened this issue · 0 comments

This major feature lets end-applications to define key/mouse bindings for minus by neither requiring to copy and paste the default input definitions and changing the parts that they want nor needing to explicitly depend on crossterm.

When this feature is incorporated, you can for example define a key binding like this

map.add_key_events(["enter"], |ev, ps| {
// ....
});

Do note that by introducing this new method for input definition, we aren't deprecating the legacy method of copy-pasting so your legacy code will run fine even when this feature is introduced.