it's a really old issue...
- in the editor for custom functions, one can hit escape and the newly entered function will be cancelled without any warning
- other editors (scripts, etc.) will display an warning when one leaves the editor without saving
Now, with the new MacBooks (touchbar), it will happen very soon that one 'touches' (not presses...) the escape 'key' on the touchbar
-> boom, You're out, changes or even a complete new entered function is lost