API Reference > presentation-frontend > UnifiedSelection > SelectionHandler > replaceSelection replaceSelection Method Change selection. replaceSelection(keys: Keys, level: number = 0): void Parameter Type Description keys Keys The keys indicating the new selection. level number Level of the selection. Returns - void Defined in presentation/frontend/src/presentation-frontend/selection/SelectionHandler.ts Line 151 Last Updated: 11 June, 2024