Open HTML-editing-window e.g. via alt+return. Close it via alt+o.
Focus is on node just closed, so that user can reopen it or add other nodes to it.
Focus is on >menu bar >file.
The reason is, that the alt-key toggles the focus between nodes and menu bar. When beeing extremely swift in releasing the alt-key after closing the edit-window, on can avoid the subsequent focus shift. As a java-dummy my only idea concerning this is, that when closing the edit-window, the program gets a signal, that alt has just been hit - which isn't the case, as it is only in the state of beeing pressed. One solution could be to avoid this signal to the program somehow. Another - not optimal - could be to introduce a time interval of .5 s or so after an html-editing-window has been closed, in which the program does not accept hit-alt-key-events.