# custom keyboard shortcuts for own options?

**URL:** https://support.prodi.gy/t/custom-keyboard-shortcuts-for-own-options/2087
**Category:** Uncategorized
**Tags:** enhancement, front-end, done
**Created:** [October 8, 2019, 3:42pm UTC](https://support.prodi.gy/t/custom-keyboard-shortcuts-for-own-options/2087 "2019-10-08T15:42:02Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)
#### Post date: [October 8, 2019, 10:51pm UTC](https://support.prodi.gy/t/custom-keyboard-shortcuts-for-own-options/2087/2 "2019-10-08T22:51:14Z")

</div>

Yes, this is something that I've wanted for a while – but the current implementation of the shortcuts made it difficult to allow changing them at runtime (which is why they're currently hardcoded). But I want to give it a shot again and maybe refactor this part, so users can pass in custom keymaps via the recipe config or their `prodigy.json`. So you could then do something like this:

```python
# Disclaimer: this is a proposal and currently doesn't work
"config": {
    "keymap": {
        "accept": ["1", "a"],
        "reject": ["2", "x"],
        "save": ['command+space'],
        "choice": ["p", "n", "m"]
    }
}

```

If I remember correctly, the choice options are currently selected by index (hence the numbers), so in order to make this work, the options might need to specify an additonal key, like `"key": "p"`.

---

_[View the full topic](https://support.prodi.gy/t/custom-keyboard-shortcuts-for-own-options/2087)._
