Add a renaming flag so that calling rename again does nothing
Use isInRename instead of the flag
Merge remote-tracking branch 'upstream/master' into tom/fix-issue-2641
Move the fix to the top of the function
Revert last change
Merge pull request #3299 from TomMalbran/tom/fix-issue-2641

Fix #2641: Input field change to blank after double click F2 to rename the file - few user will encounter