Separating the "reveal next answer hint" and "open sketchy link" shortcuts

How do I get the “reveal next” function to ONLY work for toggling answer hints, rather than first opening the sketchy/additional materials link? My problem is every time I use the “reveal next” shortcut on my remote, it opens the sketchy link first, which means that I have to press the “up” button on my remote a bunch of times to scroll back up to the top and continue revealing answer hints. This sort of defeats the purpose for me. I would still like a shortcut to the sketchy link, want to separate this from the “reveal next” function or at least make it come AFTER revealing all the answer hints

Thank you for reaching out! Our moderators have been notified and will assist you shortly. In the meantime, you can get an instant response from me simply by @ mentioning my username`. Alternatively, start a private conversation with me (see screenshot below). If you ask me a question, I will do my best to respond using only verified information found in the official AnkiHub docs and the Anki manual.

You can also find answers to common questions in our FAQ and Docs.

I’ll help you with separating the “reveal next” function for toggling answer hints from opening sketchy links. Let me search for relevant information about this issue.

Search

Found 4 results for 'tags:official reveal next shortcut answer hints sketchy status:public'

I don’t see any specific information about separating the “reveal next” function from Sketchy links in the search results. Let me search for more specific keyboard shortcut information that might help:

Search

Found 5 results for 'tags:official keyboard shortcuts anki hints status:public'

Search

Found 0 results for 'tags:official sketchy link reveal next answer status:public'

Search

Found 5 results for 'tags:official anki shortcuts status:public'

It seems your question is about customizing keyboard shortcuts in Anki, specifically for the “reveal next” function when using Sketchy links in your cards. Let me help you with this issue.

Understanding Your Problem

You’re trying to separate two functions that are currently tied to the same shortcut:

  1. Revealing the next answer hint
  2. Opening the Sketchy/additional materials link

Currently, pressing the “reveal next” shortcut on your remote opens the Sketchy link first, forcing you to scroll back up to continue revealing hints.

Solution Options

This appears to be related to how the AnKing Step Deck or other medical decks with Sketchy integration handle keyboard shortcuts. The standard behavior is likely tied to how HTML elements are ordered in your note template.

Here are some possible solutions:

1. Customize Note Template HTML

You can modify the order of elements in your card template to make the hints appear before the Sketchy links in the tab order:

  1. In Anki, go to Tools → Manage Note Types
  2. Select your note type (likely an AnKing or medical deck note type)
  3. Click Cards
  4. In the card template editor, you may need to reorder the HTML elements so the hint buttons come before the Sketchy link

2. Use Add-ons for Custom Shortcuts

There are add-ons that can help customize keyboard shortcuts in Anki:

  • Custom Keyboard Shortcuts add-on might help you assign different keys to different functions
  • Look for add-ons specifically designed for the AnKing deck that might offer these customizations

3. Use Alternative Navigation Methods

  • Use different shortcuts for different functions (e.g., one key for hints, another for links)
  • Consider using mouse navigation for one function and keyboard for the other

4. Check AnKing Documentation

Since this appears to be related to the AnKing Step Deck (which includes Sketchy integration), check the AnKing Step Deck Wiki for specific documentation about shortcut customization.

Next Steps

Since this is a fairly specific customization request related to the interaction between Anki’s standard functionality and medical deck templates, you might need to:

  1. Check if there are specific settings in your deck or note type properties
  2. Consider posting in the AnKing subreddit or Discord for more specialized help
  3. Experiment with modifying your card templates to change the tab order of elements

Would you like more detailed guidance on any of these approaches? I can help explain more about modifying card templates or finding specific add-ons that might help with this issue.

I’ll help you customize the HTML to change the order of elements so that hints appear before Sketchy links in the tab order. This should allow your “reveal next” function to prioritize hints over Sketchy links.

How to Modify the HTML Template

  1. Open Anki and go to Tools → Manage Note Types
  2. Select the note type you’re using (likely an AnKing or medical deck note type)
  3. Click Cards to open the card template editor
  4. Look for the HTML code in the “Front Template” or “Back Template” section (depending on where your hints and Sketchy links appear)

What to Look For and Change

Look for HTML sections that include:

  • Hint-related elements (may use classes like hints, hint-button, or similar)
  • Sketchy link elements (may include terms like sketchy, sketchy-link, or similar URLs)

The goal is to:

  1. Identify these sections in your template code
  2. Reorder them so hint elements appear before Sketchy link elements

Example Modification

The exact code will depend on your specific template, but here’s a general example of what you might change:

Before:

<!-- Other card content -->
<div class="sketchy-container">
    <a href="{{Sketchy}}" class="sketchy-link">Sketchy</a>
</div>
<div class="hints-container">
    <div class="hint">{{hint:Extra}}</div>
</div>

After:

<!-- Other card content -->
<div class="hints-container">
    <div class="hint">{{hint:Extra}}</div>
</div>
<div class="sketchy-container">
    <a href="{{Sketchy}}" class="sketchy-link">Sketchy</a>
</div>

Additional Tips

  1. Back Up Your Template First: Before making changes, copy your original template to a text file as backup.

  2. Use HTML Comment Tags: Consider adding comment tags to help you identify sections:

    <!-- HINT SECTION START -->
    <div class="hints">...</div>
    <!-- HINT SECTION END -->
    
  3. Test With a Small Sample: Apply your changes to a copy of your note type first and test with a few cards.

  4. Look for TabIndex Attributes: If reordering the elements doesn’t work, you might need to add or modify tabindex attributes in the HTML to explicitly control tab order:

    <div class="hints-container" tabindex="1">...</div>
    <div class="sketchy-container" tabindex="2">...</div>
    

If you need more specific help with your particular template, you might want to share a sample of your current template code (with personal information removed). This would allow for more tailored guidance.

Hello,

I would be happy to help. :slight_smile:

From the sound of it, you have two different actions bound to the same key which I believe would be the likely cause here. Thus, the solution would be to make sure that the key you’re pressing is only bound to the behavior you want.

The easiest route to this would be making sure you have the AnKing Note Types add-on installed (https://ankiweb.net/shared/info/952691989), then going to the ‘hint button’ interface and adjusting your settings there.

Additionally, you might turn off ‘scroll to button when toggled’ since it sounds like that is a behavior you’re not wanting:

Additionally, if you’re using a remote you might also double-check with whichever add-on or keymapping you’re using, to make sure that the button itself isn’t mapped to two separate behaviors.

1 Like

you guys are awesome, thank you. the “scroll to button when toggled” option was exactly what I was looking for

1 Like