New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Home key doesn't move to the 1st character when renaming item in List View layout #15048
Comments
Thank you for the report, I can repro this issue in the List View as well. Interestingly it's not an issue in the Details View. |
Wow - can I give you 11 out of 10 stars for speed of testing? |
Having clear repro steps helps in this regard! Reproducing doesn't mean it'll be fixed right away, but it does mean that it's added to our project board and marked as ready to build. |
I think I know how to fix this, may I be assigned to this ? Also should I write tests for it ? Thank you. |
If your able to fix this issue, just open a PR with it. |
…en renaming item in List View Layout. The Home and end key weren't being acknowledged by the textBox.Keydown on the List View, Grid View and Tile View Layouts. To fix this I replaced it with textBox.PreviewKeyDown, this way the handling is not being consumed before it reaches the controller. I had to implement specific handling for these keys on the switch case already implemented on the GridLayoutPage.xaml.cs.
Tests aren't necessary but you should verify it works and include the steps you used to verify in the PR. |
…en renaming item in List View Layout. The Home and end key weren't being acknowledged by the textBox.Keydown on the List View, Grid View and Tile View Layouts. To fix this I replaced it with textBox.PreviewKeyDown, this way the handling is not being consumed before it reaches the controller. I had to implement specific handling for these keys on the switch case already implemented on the GridLayoutPage.xaml.cs.
Description
When renaming a file with a long name in Windows Explorer, the whole name is displayed, whereas Files only displays part of the name. In Files, when the name is in edit mode (F2) the Home & End keys only move to the start & end of the visual/ displayed text rather than the 1st or last character. This issue seems to stem from Files difference in how it displays long file names; generally they are shown in a truncated form whereas Explorer generally shows the whole name.
Steps To Reproduce
Requirements
Not quite sure, but its currently confusing. Initially I thought a truncated name was being pasted, but you can use the cursor-left key to see all the other characters are actually pasted, just not displayed.
Files Version
3.3
Windows Version
11 23H2
Log File
this should be optional?
The text was updated successfully, but these errors were encountered: