findMatching static method

ShortcutModel? findMatching(
  1. List<ShortcutModel>? shortcuts
)

Implementation

static ShortcutModel? findMatching(List<ShortcutModel>? shortcuts) {
  // find the shortcut
  for (ShortcutModel shortcut in shortcuts ?? []) {
    // shortcut found?
    var found = shortcut.isMatch(
        keysPressed, isCtrlPressed, isAltPressed, isShiftPressed);
    if (found) return shortcut;
  }
  return null;
}