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/selection/SelectionHandler.ts Line 130 Last Updated: 13 June, 2024