185
return;
186
}
188
>
for (let i = conflicts.length - 1; i >= 0; i--) {
189
>
const conflict = conflicts[i];
190
>
191
>
if (conflict.command === item.command) {
192
continue;
193
}
195
>
// Test if the shorter keybinding is a prefix of the longer one.
196
>
// If the shorter keybinding is a prefix, it effectively will shadow the longer one and is considered a conflict.
197
>
let isShorterKbPrefix = true;
198
>
for (let i = 1; i < conflict.chords.length && i < item.chords.length; i++) {
199
if (conflict.chords[i] !== item.chords[i]) {
200
// The ith step does not conflict