# Adding Hot Key(s) to Ground Control

**URL:** <https://forums.maslowcnc.com/t/adding-hot-key-s-to-ground-control/8971>\
**Category:** Software\
**Tags:** groundcontrol\
**Created:** [March 2, 2019, 7:41pm UTC](https://forums.maslowcnc.com/t/adding-hot-key-s-to-ground-control/8971 "2019-03-02T19:41:53Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![theHipNerd](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/thehipnerd/32/8897_2.png) [@theHipNerd](https://forums.maslowcnc.com/u/theHipNerd)\
**Post date:** [March 2, 2019, 7:41pm UTC](https://forums.maslowcnc.com/t/adding-hot-key-s-to-ground-control/8971/1 "2019-03-02T19:41:53Z")

</div>

I have a feature request for Ground Control: I would like hot keys for run, pause and stop buttons. Is it possible, would it be hard? Sorry, I don’t know Python.

---

<div class="post-metadata">

**Author:** ![Joshua](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@Joshua](https://forums.maslowcnc.com/u/Joshua)\
**Post date:** [March 3, 2019, 6:54pm UTC](https://forums.maslowcnc.com/t/adding-hot-key-s-to-ground-control/8971/2 "2019-03-03T18:54:20Z")

</div>

For the base Ground Control, I did a quick search, and it looks like Kivy could support it.

---

<div class="post-metadata">

**Author:** ![theHipNerd](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/thehipnerd/32/8897_2.png) [@theHipNerd](https://forums.maslowcnc.com/u/theHipNerd)\
**Post date:** [March 3, 2019, 10:41pm UTC](https://forums.maslowcnc.com/t/adding-hot-key-s-to-ground-control/8971/3 "2019-03-03T22:41:31Z")

</div>

Thanks for looking into it.

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [August 24, 2019, 11:10pm UTC](https://forums.maslowcnc.com/t/adding-hot-key-s-to-ground-control/8971/4 "2019-08-24T23:10:07Z")

</div>

> [@theHipNerd](#):
>
> I have a feature request for Ground Control: I would like hot keys for run, pause and stop buttons.

Which keys did you have in mind? ‘R’, ‘P’ and ‘S’ maybe? The way GC is set up, single-key hot keys are pretty easy to implement, multi-key one not so easy.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [August 24, 2019, 11:23pm UTC](https://forums.maslowcnc.com/t/adding-hot-key-s-to-ground-control/8971/5 "2019-08-24T23:23:38Z")

</div>

We may want to have multiple keys, in addition to RPS as you suggest:  
the space bar be pause/unpause  
escape be stop/abort

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [August 25, 2019, 12:16am UTC](https://forums.maslowcnc.com/t/adding-hot-key-s-to-ground-control/8971/6 "2019-08-25T00:16:01Z")

</div>

The keys would be editable in Settings/GroundControlSettings, that limits us to one key per action.  
Assign the escape key using the word escape or assign the spacebar using the word spacebar.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [August 25, 2019, 12:53am UTC](https://forums.maslowcnc.com/t/adding-hot-key-s-to-ground-control/8971/7 "2019-08-25T00:53:20Z")

</div>

there is Runs vs Pause and there is toggle run/pause with a single key

how would you specify both with your approach?

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [August 25, 2019, 2:42am UTC](https://forums.maslowcnc.com/t/adding-hot-key-s-to-ground-control/8971/8 "2019-08-25T02:42:02Z")

</div>

My plan is to have the hot key call the same routine that clicking the button calls. That handles updating the text on the ‘Pause’ button when it changes state.

---

<div class="post-metadata">

**Author:** ![theHipNerd](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/thehipnerd/32/8897_2.png) [@theHipNerd](https://forums.maslowcnc.com/u/theHipNerd)\
**Post date:** [August 25, 2019, 2:07pm UTC](https://forums.maslowcnc.com/t/adding-hot-key-s-to-ground-control/8971/9 "2019-08-25T14:07:47Z")

</div>

It’d be nice to be able to assign custom keys. My preference would be to have the space bar be stop, I’m not as concerned about the run and pause keys, ‘r’ and ‘p’ are fine.

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [August 25, 2019, 3:02pm UTC](https://forums.maslowcnc.com/t/adding-hot-key-s-to-ground-control/8971/10 "2019-08-25T15:02:28Z")

</div>

> [@theHipNerd](#):
>
> It’d be nice to be able to assign custom keys.

Ok, I’ve opened a PR in the GroundControl repository to do that.

- The key assignments are editable in Settings/GroundControlSettings, though that limits us to one key per action. Defaulted to ‘r’, ‘p’, ‘s’ (lower case)
- The escape key can be assigned using the word escape, the spacebar using the word spacebar. Avoid upper case, shifted or meta characters.
- Assign a character to disable FAKE\_SERVO mode, press that key along with ‘ctrl’ or ‘alt’ or ‘cmd’ to enable FAKE\_SERVO. Defaulted to ‘f’ for off.
- The Run/Pause/Stop hotkeys call the same routine that clicking the corresponding button calls. That handles updating the text on the ‘Pause’ button when it changes state.

---

<div class="post-metadata">

**Author:** ![theHipNerd](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/thehipnerd/32/8897_2.png) [@theHipNerd](https://forums.maslowcnc.com/u/theHipNerd)\
**Post date:** [August 25, 2019, 10:47pm UTC](https://forums.maslowcnc.com/t/adding-hot-key-s-to-ground-control/8971/11 "2019-08-25T22:47:32Z")

</div>

Thanks! I’ll give it a try, and let you know how it goes.
