# Hotkey-Studycards | implementation ideas?

**URL:** <https://forums.ankiweb.net/t/hotkey-studycards-implementation-ideas/47970>\
**Category:** Card Design\
**Created:** [August 8, 2024, 10:24am UTC](https://forums.ankiweb.net/t/hotkey-studycards-implementation-ideas/47970 "2024-08-08T10:24:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malvalle](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/malvalle/32/22490_2.png) [@Malvalle](https://forums.ankiweb.net/u/Malvalle)\
**Post date:** [August 8, 2024, 10:24am UTC](https://forums.ankiweb.net/t/hotkey-studycards-implementation-ideas/47970/1 "2024-08-08T10:24:10Z")

</div>

I’d like to create study cards to help me remember hotkeys for different programs. For example, in Word:

- **Shift + F5** : Jumps to the last place of the cursor
- **Ctrl + Alt + S** : Splits the edit screen in two
- **Shift + Alt + S** : Applies strikethrough

I could make “normal” cards and visualize the key combinations in my mind. However, I’d prefer to actually press the correct key combinations, and if I get it right, the card would be marked as correct.

The first challenge is already that this idea conflicts with Anki’s and the system’s shortcuts .

Does anyone have suggestions on how I can implement this? I would also appreciate critical feedback, even if it’s something like “forget it, too hard.”

---

<div class="post-metadata">

**Author:** ![harrylang100](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@harrylang100](https://forums.ankiweb.net/u/harrylang100)\
**Post date:** [August 16, 2024, 8:09am UTC](https://forums.ankiweb.net/t/hotkey-studycards-implementation-ideas/47970/2 "2024-08-16T08:09:30Z")

</div>

I don’t think you’d be able to do this using Anki unfortunately. I use an app called [KeyCombiner](https://keycombiner.com/) that does exactly what you’re after.

---

<div class="post-metadata">

**Author:** ![Malvalle](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/malvalle/32/22490_2.png) [@Malvalle](https://forums.ankiweb.net/u/Malvalle)\
**Post date:** [August 16, 2024, 8:36am UTC](https://forums.ankiweb.net/t/hotkey-studycards-implementation-ideas/47970/3 "2024-08-16T08:36:07Z")

</div>

love ya 💓

---

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [August 17, 2024, 11:02am UTC](https://forums.ankiweb.net/t/hotkey-studycards-implementation-ideas/47970/4 "2024-08-17T11:02:18Z")

</div>

I don’t think you can have same shortcuts working at the same time with both Anki interface and card scripts. But if you are learning shortcuts that are not a part of the default Anki set or fine with removing/remapping Anki shortcuts to make them available to card scripts (can be done in a separate Anki installation with the same user account to keep Anki shortcuts working when not reviewing the hotkey-studycards), this seems like a pretty straightforward thing.

I have an add-on that includes a removal of existing shortcuts function [here](https://github.com/Eltaurus-Lt/Anki-Card-Templates/tree/8262e27599b7f8c7ad07871692d39e50a84ffbed/Add-on) (you are looking for the `Clear_Shortcuts.py` script). For remapping keys you can use [this add-on](https://ankiweb.net/shared/info/24411424) instead.

After a shortcut is made available for the cards, it is a matter of simply parsing the required key combination stored in the Anki field and adding `document.onkeydown` function to your card, that will compare the event trigger with the questioned shortcut and check additional conditions for Alt/Ctrl/Shift modifiers.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [September 16, 2024, 11:03am UTC](https://forums.ankiweb.net/t/hotkey-studycards-implementation-ideas/47970/5 "2024-09-16T11:03:01Z")

</div>

Closed on September 16, 2024, 11:03am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
