matches_any

Function matches_any 

Source
pub fn matches_any(ke: &KeyEvent, list: &[KeyChord]) -> bool
Expand description

What: Check if a key event matches any chord in a list, handling Shift+char edge cases.

Inputs:

  • ke: Key event from terminal
  • list: List of configured key chords to match against

Output:

  • true if the key event matches any chord in the list, false otherwise

Details:

  • Treats Shift+ from config as equivalent to uppercase char without Shift from terminal.
  • Handles cases where terminals report Shift inconsistently.