Named Filter Menu Version 2

No doubt, however, dbg is initially is set to false and I still do NOT press any key while pressing the toolbar button, and yet dbg becomes true in this line.

That's why I've asked.

Version 2.2, which is now available in the head post, shows precisely what triggered debug mode. A sample trace follows. No trace will appear if debug mode is not activated.