Need help with desktopEditMode.qml

from line number 135 to 146 there is this code

PC.ToolButton {

Layout.alignment: Qt.AlignTop

visible: Kirigami.Settings.hasTransientTouchInput || Kirigami.Settings.tabletMode

icon.name: "overflow-menu"

text: i18ndc("plasma_shell_org.kde.plasma.desktop", "@action:button", "More")

onClicked: {

containment.openContextMenu(mapToGlobal(0, height));

}

}

where do I find the declaration of code inside the onClicked?

What do I want to do : I want to add a shortuct to toggle visiblitiy of a menu bar. Not auto-hide/visible, but visible/hide.

My usecase : I am developing an android app in android studio. I have a panel with only timer widget in it. I only use timer widget when writing code, not when surfing internet. If I used auto-hide, I will have to make it visible via shortcut and then use mouse to click for playing/pausing. But If I could toggle visibliy, I could make it always visible when using android studio, or anytime i want, and hide it anytime I want via a shortcut. That way I decrease one step to pause/play timer.

Maybe no one wants it, but I do, and I love linux for such granualar customization. So, how?