chordPrefixMatches function
Check if a chord prefix matches the beginning of a binding's chord.
Implementation
bool chordPrefixMatches(List<ParsedKeystroke> prefix, ParsedBinding binding) {
if (prefix.length >= binding.chord.length) return false;
for (var i = 0; i < prefix.length; i++) {
if (!keystrokesEqual(prefix[i], binding.chord[i])) return false;
}
return true;
}