@@ -12,7 +12,6 @@ import { KeyCode, KeyMod } from 'vs/base/common/keyCodes';
12
12
import * as dom from 'vs/base/browser/dom' ;
13
13
import { FindInput } from 'vs/base/browser/ui/findinput/findInput' ;
14
14
import { IContextViewService } from 'vs/platform/contextview/browser/contextView' ;
15
- import { IContextKey } from 'vs/platform/contextkey/common/contextkey' ;
16
15
import { registerThemingParticipant , ITheme } from 'vs/platform/theme/common/themeService' ;
17
16
import { inputBackground , inputActiveOptionBorder , inputForeground , inputBorder , inputValidationInfoBackground , inputValidationInfoBorder , inputValidationWarningBackground , inputValidationWarningBorder , inputValidationErrorBackground , inputValidationErrorBorder , editorWidgetBackground , widgetShadow } from 'vs/platform/theme/common/colorRegistry' ;
18
17
import { SimpleButton } from './findWidget' ;
@@ -29,7 +28,6 @@ export abstract class SimpleFindWidget extends Widget {
29
28
protected _isVisible : boolean ;
30
29
protected _focusTracker : dom . IFocusTracker ;
31
30
protected _findInputFocusTracker : dom . IFocusTracker ;
32
- protected _findInputFocused : IContextKey < boolean > ;
33
31
protected _findHistory : HistoryNavigator < string > ;
34
32
protected _updateHistoryDelayer : Delayer < void > ;
35
33
@@ -113,8 +111,8 @@ export abstract class SimpleFindWidget extends Widget {
113
111
this . _register ( this . _focusTracker . addBlurListener ( this . onFocusTrackerBlur . bind ( this ) ) ) ;
114
112
115
113
this . _findInputFocusTracker = this . _register ( dom . trackFocus ( this . _findInput . domNode ) ) ;
116
- this . _register ( this . _findInputFocusTracker . addFocusListener ( this . _onFindInputFocusTrackerFocus . bind ( this ) ) ) ;
117
- this . _register ( this . _findInputFocusTracker . addBlurListener ( this . _onFindInputFocusTrackerBlur . bind ( this ) ) ) ;
114
+ this . _register ( this . _findInputFocusTracker . addFocusListener ( this . onFindInputFocusTrackerFocus . bind ( this ) ) ) ;
115
+ this . _register ( this . _findInputFocusTracker . addBlurListener ( this . onFindInputFocusTrackerBlur . bind ( this ) ) ) ;
118
116
119
117
this . _register ( dom . addDisposableListener ( this . _domNode , 'click' , ( event ) => {
120
118
event . stopPropagation ( ) ;
@@ -125,6 +123,8 @@ export abstract class SimpleFindWidget extends Widget {
125
123
protected abstract find ( previous : boolean ) ;
126
124
protected abstract onFocusTrackerFocus ( ) ;
127
125
protected abstract onFocusTrackerBlur ( ) ;
126
+ protected abstract onFindInputFocusTrackerFocus ( ) ;
127
+ protected abstract onFindInputFocusTrackerBlur ( ) ;
128
128
129
129
protected get inputValue ( ) {
130
130
return this . _findInput . getValue ( ) ;
@@ -207,14 +207,6 @@ export abstract class SimpleFindWidget extends Widget {
207
207
this . _findInput . setValue ( previous ) ;
208
208
}
209
209
}
210
-
211
- private _onFindInputFocusTrackerFocus ( ) {
212
- this . _findInputFocused . set ( true ) ;
213
- }
214
-
215
- private _onFindInputFocusTrackerBlur ( ) {
216
- this . _findInputFocused . set ( false ) ;
217
- }
218
210
}
219
211
220
212
// theming
0 commit comments