What I wanted to achieve was to create a button that adds a new row and sets focus so typing can be done without additional clicks. But now I only set focus, but to start typing it is necessary to click on the cell.
How can I open a cell using a script, so a user can immediately start typing?
When I use
setCurrentCell function, it only sets focus but I cannot start typing.