Pressing Enter while in the Name field clears input values

[CR #316434] In the Template Upload window, if the cursor is in the Name field and you press Enter, the contents of the Name and Code fields are cleared, and the Type field is reset to its default value, “HTML”.

Workaround: Do not press Enter while the cursor is in the Name field in the Template Upload window.