I made a menu using dat.gui for my applcation with Three.js. It works fine, I have also discovered that pressing h key I can hide the menu created with dat.gui. My question is h
You can try
var gui = new dat.GUI(); //... your logic here gui.__proto__.constructor.toggleHide()