# Request Map Window Sub-Component that Issues a Hotkey and Can Display a Button in the Map's Toolbar

**URL:** <https://forum.vassalengine.org/t/request-map-window-sub-component-that-issues-a-hotkey-and-can-display-a-button-in-the-maps-toolbar/75154>\
**Category:** Feature Requests\
**Tags:** v4\
**Created:** [August 4, 2022, 7:12pm UTC](https://forum.vassalengine.org/t/request-map-window-sub-component-that-issues-a-hotkey-and-can-display-a-button-in-the-maps-toolbar/75154 "2022-08-04T19:12:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pawnpusher](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/pawnpusher/32/184_2.png) [@pawnpusher](https://forum.vassalengine.org/u/pawnpusher)\
**Post date:** [August 4, 2022, 7:12pm UTC](https://forum.vassalengine.org/t/request-map-window-sub-component-that-issues-a-hotkey-and-can-display-a-button-in-the-maps-toolbar/75154/1 "2022-08-04T19:12:59Z")

</div>

Maybe I am unaware of a feature, but to my knowledge the way to issue a global hotkey by pressing a button on a toolbar of a window other than the main window is as follows:

- Add a Global Key Command to the Map Window in which you want the activating button on the toolbar.
- Add button text, tooltip text and button icon graphic as desired
- Define a Global Key Command to initiate the desired action
- Define a Global Hotkey trait in a Game Piece that will be “triggered” by the Global Key Command defined above

The request is for a Global Hotkey sub-component of any map window that can have a button in that map’s toolbar like a Global Key Command sub-component of a map window in Vassal 4. This could be like the Action Button described here: [VASSAL Reference Manual](https://vassalengine.org/doc/latest/ReferenceManual/DoActionButton.html#top)

---

<div class="post-metadata">

**Author:** ![marktb1961](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/marktb1961/32/231_2.png) [@marktb1961](https://forum.vassalengine.org/u/marktb1961)\
**Post date:** [August 5, 2022, 11:18am UTC](https://forum.vassalengine.org/t/request-map-window-sub-component-that-issues-a-hotkey-and-can-display-a-button-in-the-maps-toolbar/75154/2 "2022-08-05T11:18:35Z")

</div>

It sounds like you are asking for the Action Button to be allowed in Map components and not just at module level like it is now. I [requested](https://forum.vassalengine.org/t/action-button-to-be-available-on-map-and-player-hand-windows/72706) this a while ago and @Brent_Easton advised that it would be straightforward to do. Unfortunately it missed out on v3.6, so I’ve been hoping that a v3.7 will happen.

If I’ve understood your request right, certainly Action Button would make more sense that some feature purely restricted to issuing a GHK, especially if it’s easier to implement.

I also requested a related thing, which I imagine is just as straightforward - the [Startup Action Button.](https://forum.vassalengine.org/t/startup-action-button-added-features/74632).

---

<div class="post-metadata">

**Author:** ![pawnpusher](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/pawnpusher/32/184_2.png) [@pawnpusher](https://forum.vassalengine.org/u/pawnpusher)\
**Post date:** [August 5, 2022, 12:19pm UTC](https://forum.vassalengine.org/t/request-map-window-sub-component-that-issues-a-hotkey-and-can-display-a-button-in-the-maps-toolbar/75154/3 "2022-08-05T12:19:39Z")

</div>

Yes, and consideration should be given to changing the name to maybe Toolbar Button to avoid confusion with the Action Button trait available to game pieces.
