fluent2KeysLed function

bool fluent2KeysLed()

Whether a key, not a pointer, moved last (fluent2WatchInput), or a key is held as it is asked (a menu opened in the key's own handler): a browser's :focus-visible, for an open menu's first lit row.

Implementation

bool fluent2KeysLed() =>
    _keysLast ||
    HardwareKeyboard.instance.logicalKeysPressed.any(
      (key) => !_modifiers.contains(key),
    );