@cisstech/nge
Version:
NG Essentials is a collection of libraries for Angular developers.
17 lines (16 loc) • 729 B
TypeScript
import { NgeMonacoContribution } from './monaco-contribution';
/**
* When a user type a composition key like ^ or \` the editor
* enter in composition mode, then after the user type any key the editor leave
* this composition mode an duplicate the character pressed by the user.
*
* This bug occurs only on some browsers like firefox and calling this method will prevent this behavior
* by removing any extra character added by the editor between 2 calls
* of `onDidCompositionStart` and `onDidCompositionEnd`
*/
export declare class PreventSymbolDuplication implements NgeMonacoContribution {
private disposable?;
activate(): void;
deactivate(): void;
private preventSymbolDuplicationOnCompositionEnd;
}