This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
src/GitHub.UI/Controls/AutoCompleteBox Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -632,7 +632,7 @@ void UpdateTextBox(IAutoCompleteTextInput value)
632632 if ( textInput != null )
633633 {
634634 UnsubscribeToEvent ( "SelectionChanged" ) ;
635- UnsubscribeToEvent ( "OnTextBoxTextChanged" ) ;
635+ // UnsubscribeToEvent("OnTextBoxTextChanged");
636636 }
637637
638638 textInput = value ;
@@ -646,18 +646,18 @@ void UpdateTextBox(IAutoCompleteTextInput value)
646646 supportsShortcutOriginalValue = shortcutContainer . SupportsKeyboardShortcuts ;
647647 }
648648
649- SubscribeToEvent ( "OnTextBoxTextChanged" , ObserveTextBoxChanges ( )
650- . Subscribe ( shouldPopulate =>
651- {
652- if ( shouldPopulate )
653- {
654- PopulateDropDown ( ) ;
655- }
656- else
657- {
658- DismissDropDown ( ) ;
659- }
660- } ) ) ;
649+ // SubscribeToEvent("OnTextBoxTextChanged", ObserveTextBoxChanges()
650+ // .Subscribe(shouldPopulate =>
651+ // {
652+ // if (shouldPopulate)
653+ // {
654+ // PopulateDropDown();
655+ // }
656+ // else
657+ // {
658+ // DismissDropDown();
659+ // }
660+ // }));
661661
662662 if ( Text != null )
663663 {
@@ -777,7 +777,7 @@ public override void OnApplyTemplate()
777777 {
778778 if ( TextBox != null )
779779 {
780- UnsubscribeToEvent ( "PreviewKeyDown" ) ;
780+ // UnsubscribeToEvent("PreviewKeyDown");
781781 }
782782
783783 if ( DropDownPopup != null )
@@ -811,7 +811,7 @@ public override void OnApplyTemplate()
811811
812812 if ( TextBox != null )
813813 {
814- SubscribeToEvent ( "PreviewKeyDown" , TextBox . PreviewKeyDown . Subscribe ( OnTextBoxPreviewKeyDown ) ) ;
814+ // SubscribeToEvent("PreviewKeyDown", TextBox.PreviewKeyDown.Subscribe(OnTextBoxPreviewKeyDown));
815815 }
816816
817817 Interaction . OnApplyTemplateBase ( ) ;
You can’t perform that action at this time.
0 commit comments