Files app: Fix context menu for renaming files/folders.
Naming/Renaming input commits the new name when the input loses focus, this is broken when user right-click on the input, since context menu pulls the focus to itself for a11y. Change the renaming controllers to listen to the contexmenu event to be able to not commit the new name in this condition. Change some "let" to "const" as pointed by presubmit. Fixed: 1008816 Change-Id: Id5ccb97598afd597871793d2165f3132b9363448 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2049150Reviewed-by:Noel Gordon <noel@chromium.org> Commit-Queue: Noel Gordon <noel@chromium.org> Auto-Submit: Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#740544}
Showing
Please register or sign in to comment