Highlight find options when invoking multicursor actions

This commit is contained in:
Alex Dima
2017-01-21 13:10:38 +01:00
parent a4a2e8dae0
commit 3357ae8f54
5 changed files with 90 additions and 7 deletions

View File

@@ -174,6 +174,13 @@ export class FindInput extends Widget {
this.caseSensitive.focus();
}
private _lastHighlightFindOptions: number = 0;
public highlightFindOptions(): void {
dom.removeClass(this.domNode, 'highlight-' + (this._lastHighlightFindOptions));
this._lastHighlightFindOptions = 1 - this._lastHighlightFindOptions;
dom.addClass(this.domNode, 'highlight-' + (this._lastHighlightFindOptions));
}
private setInputWidth(): void {
let w = this.width - this.caseSensitive.width() - this.wholeWords.width() - this.regex.width();
this.inputBox.width = w;