Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/TableViewColumnHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,22 @@ private void OnSearchBoxKeyDown(object sender, KeyRoutedEventArgs e)

e.Handled = true;
}
else if (e.Key == VirtualKey.Space)
{
// Prevent the Space key event from bubbling up to the TableView
// but still allow normal text input

e.Handled = true;

// Manually add the space character to the TextBox
if (_searchBox != null)
{
var selectionStart = _searchBox.SelectionStart;
var currentText = _searchBox.Text ?? string.Empty;
_searchBox.Text = currentText.Insert(selectionStart, " ");
_searchBox.SelectionStart = selectionStart + 1;
}
}
}

/// <summary>
Expand Down