WinUI.TableView icon indicating copy to clipboard operation
WinUI.TableView copied to clipboard

The filter cannot be searched in Chinese

Open lostluna1 opened this issue 8 months ago • 3 comments

lostluna1 avatar May 02 '25 14:05 lostluna1

To be precise, only English characters can be used for input, which I think may pose some difficulties for users in the Asian region

lostluna1 avatar May 02 '25 14:05 lostluna1

Sorry, my description is still not precise enough. What I mean is that I cannot type Chinese characters in the search box of the filter, but pasting Chinese characters into the search box will be effective

lostluna1 avatar May 02 '25 14:05 lostluna1

I've just tested it with both the default IME and Sogou, and it seems to directly capture the keys pressed without going through the Chinese IME.

Image For comparison, here is the TableView's TextBox which is working properly.

Image

I'm looking at the code now, _searchBox in TableViewColumnHeader seems to be just a normal TextBox, what I assume is causing the bug is _searchBox.PreviewKeyDown += OnSearchBoxKeyDown;, as it intercepts the key presses before they can get to the IME.

I'll see if I can replace it with a xaml keyboard accelerator.

AlexanderBlackman avatar May 12 '25 21:05 AlexanderBlackman