Skip to content

Commit ba53823

Browse files
AkhilReddy-RamireddyManus Contributor
andauthored
Fix: Fixed an issue where the home key wouldn't move focus when renaming items (#17127)
Co-authored-by: Manus Contributor <[email protected]>
1 parent 378f509 commit ba53823

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Files.App/Views/Layouts/BaseGroupableLayoutPage.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,11 @@ protected async void RenameTextBox_KeyDown(object sender, KeyRoutedEventArgs e)
312312
await CommitRenameAsync(textBox);
313313
e.Handled = true;
314314
break;
315+
case VirtualKey.Home:
316+
textBox.SelectionStart = 0;
317+
textBox.SelectionLength = 0;
318+
e.Handled = true;
319+
break;
315320
case VirtualKey.Up:
316321
if (!isShiftPressed)
317322
textBox.SelectionStart = 0;

0 commit comments

Comments
 (0)