private void HandleObjectPreview() { if (isHovering && wantsToShowPreview) { hoverPreview.OnItemPreview(hoveredItem); } else { hoverPreview.Hide(); } }
private void HandleObjectPreview() { var isPreviewKeyHold = false; switch (prefs.previewKey) { case ModificationKey.Alt: isPreviewKeyHold = evt.alt; break; case ModificationKey.Shift: isPreviewKeyHold = evt.shift; break; case ModificationKey.Control: isPreviewKeyHold = evt.control; break; } if (isHovering && prefs.enableHoverPreview && isPreviewKeyHold) { hoverPreview.OnItemPreview(hoveredItem); } else { hoverPreview.Hide(); } }