10 writes to _focus
aspire-tray (10)
src\Aspire.Tray\Common\TrayPanel.cs (10)
232_focus = new(PanelTargetKind.Back, PanelSection.None, null); 292_focus = null; 314_focus = key; 428_focus = new(PanelTargetKind.OpenInMenu, open.Section, open.Host); 528_focus = new(PanelTargetKind.More, actions.Section, actions.Host); 538_focus = new(PanelTargetKind.ConfirmCancel, confirm.Section, confirm.Host?.Id); 568_focus = confirm.Kind switch 580_focus = new(PanelTargetKind.Settings, PanelSection.None, null); 621_focus = target.Key; 924_focus = null;
9 references to _focus
aspire-tray (9)
src\Aspire.Tray\Common\TrayPanel.cs (9)
152public PanelTargetKey? FocusedTarget => _focus; 333return index < 0 || _focus == key ? PanelResponse.None : FocusAt(targets, index); 444var focused = Scene.Targets.FirstOrDefault(target => target.Key == _focus); 601var index = order.FindIndex(target => target.Key == _focus); 602if (index < 0 && _focus is { Host: not null } current) 922if (_focus is { } focus && !targets.Any(target => target.Key == focus)) 931if (_focusVisible && targets.FirstOrDefault(target => target.Key == _focus) is { } focused) 1178var active = expanded || IsWithinRow(_hover, rowKey) || IsWithinRow(_pressed, rowKey) || (_focusVisible && IsWithinRow(_focus, rowKey)); 1504: _hover == key || (includeFocus && _focusVisible && _focus == key) ? palette.Hover