The `_isInRename()` function is expecting a DOM element, but `entry` is a `FileEntry`. You'll need to get the selected DOM element here.

It may just be easiest to put the code back where it was... Sorry about that! :-)