Skip to content

Fix: Fixed Ctrl+A in the rename textbox #12050

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

Merged
merged 2 commits into from
Apr 14, 2023

Conversation

hishitetsu
Copy link
Member

Targeted to the servicing branch

Resolved / Related Issues

  • Were these changes approved in an issue or discussion with the project maintainers? In order to prevent extra work, feature requests and changes to the codebase must be approved before the pull request will be reviewed. This prevents extra work for the contributors and maintainers.
    Closes Bug: Ctrl + A shortcut isn't selecting text when renaming files #12040

Validation
How did you test these changes?

  • Did you build the app and test your changes?
  • Did you check for accessibility? You can use Accessibility Insights for this.
  • Did you remove any strings from the en-us resource file?
    • Did you search the solution to see if the string is still being used?
  • Did you implement any design changes to an existing feature?
    • Was this change approved?
  • Are there any other steps that were used to validate these changes?

@ferrariofilippo
Copy link
Contributor

I'm wondering if we should disable all the shortcuts when renaming items...

@hishitetsu
Copy link
Member Author

hishitetsu commented Apr 11, 2023

I'm wondering if we should disable all the shortcuts when renaming items...

Certainly. However, this fix is necessary anyway, since the problem here is not that Select All Items is invoked, but that Select All Text is not invoked. The code is intended to disable the ListView native shortcut and redirect to RichCommand.

Copy link
Contributor

@QuaintMako QuaintMako left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, it solves the issue.

@QuaintMako
Copy link
Contributor

Regarding the disabling of all shortcuts when renaming, that is possibly a good idea.
I'd suggest opening an feature request for it to open discussions around it.

@ferrariofilippo
Copy link
Contributor

Certainly. However, this fix is necessary anyway, since the problem here is not that Select All Items is invoked, but that Select All Text is not invoked. The code is intended to disable the ListView native shortcut and redirect to RichCommand.

I'm sorry probably I was not very clear. That comment meant that we could move if (IsRenamingItem) return; to the top of the method

@ferrariofilippo
Copy link
Contributor

Regarding the disabling of all shortcuts when renaming, that is possibly a good idea. I'd suggest opening an feature request for it to open discussions around it.

Just opened #12053

@hishitetsu
Copy link
Member Author

I'm sorry probably I was not very clear. That comment meant that we could move if (IsRenamingItem) return; to the top of the method

I see. I will address it that way later.

@hishitetsu
Copy link
Member Author

I'm sorry probably I was not very clear. That comment meant that we could move if (IsRenamingItem) return; to the top of the method

I addressed it.

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Apr 14, 2023
@yaira2 yaira2 merged commit d5880b9 into files-community:service/2.4.61 Apr 14, 2023
@hishitetsu hishitetsu deleted the FixCtrlA branch April 14, 2023 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants