(input, name, selectBase)
| 771 | } |
| 772 | |
| 773 | function focusRenameInput(input, name, selectBase) { |
| 774 | try { |
| 775 | input.focus(); |
| 776 | if (selectBase) { |
| 777 | const lastDot = String(name || '').lastIndexOf('.'); |
| 778 | if (lastDot > 0) { |
| 779 | input.setSelectionRange(0, lastDot); |
| 780 | } else { |
| 781 | input.select(); |
| 782 | } |
| 783 | } else { |
| 784 | input.select(); |
| 785 | } |
| 786 | } catch (e) { /* ignore */ } |
| 787 | } |
| 788 | |
| 789 | function startInlineRenameForFileRow(row, file, folder) { |
| 790 | if (!row || !file) return false; |
no outgoing calls
no test coverage detected