Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.01 KB

File metadata and controls

24 lines (16 loc) · 1.01 KB
title CommandResult.KeepOpen() Method
description The KeepOpen method does nothing and leaves the palette in its current state.
ms.date 2/11/2025
ms.topic reference
no-loc
PowerToys
Windows
Insider

CommandResult.KeepOpen() Method

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Do nothing. This leaves the palette in its current state, with the current page stack and query.

Note

If the command navigates to another application, the palette's default behavior is to hide itself when it loses focus. When the user next activates the Command Palette, it will be in the same state as when it was hidden.

Creates a new CommandResult instance with its Kind property set to CommandResultKind.KeepOpen and its Args set to null.

Returns

A CommandResult instance.