Right hand reviews / hjkl answer shortcuts / Handy Answer Keys (configurable) [Official thread]

If you have a problem with the add-on right hand reviews / hjkl answer shortcuts / Handy Answer Keys (configurable) post in this thread. This way I get notified. If you make a new thread I will likely miss it. If you post your comment, question or bug report on ankiweb as a review I won’t get notified. You really should post in this thread.

Hi, first of all thank you for writing this great add-on!

I I’m using filtered decks for cramming and there are only 2 answer buttons (again and good). I want to be hit ‘k’ for the ‘good option’ and ‘j’ for the ‘again’ option. I’ve been able to set up the ‘k’ for the ‘good button’ (with “adjust_the_meaning_of_the_answer_keys_depending_on_number_of_answer_buttons”: true) but I can’t seem to be able to set up the ‘j’ button. I’ve tried setting “adjusted_answer_keys__second_key_for_less_than_four_buttons” to both ‘defaultease’ and ‘fail’ but with each setting ‘j’ also hits the ‘good’ button. Basically I want ‘j’ to hit the first button out of the two available. Can you please help me with this? Many thanks! :slight_smile:

the left button always means fail and for fail you use the button “reviewer_1”. So I don’t think it’s enough to adjust the config but you need to change the source code.

Maybe add two lines behind this line so that it looks like this:

        if ease == 1:     # 1 is always the leftmost button
        if ease == 2 and cnt == 2:
        elif ease == 4:   # 4 always the rightmost button/highest ease

That’s untested. Use it at your own risk. At the moment I don’t use the add-on.

1 Like

Wow, it works, thank you so much!!! :grinning:

In the meantime I’ve also worked out another technique to keep keystrokes consistent across decks with 2 and 4 buttons. I thought I’d share this here in case somebody else is interested:

  • use the ‘customize keyboard shortcuts’ add-on
  • set up custom shortcuts:
    “reviewer choice 1”: “j”,
    “reviewer choice 2”: “k”,
    “reviewer choice 3”: “”,
    “reviewer choice 4”: “l”,
  • when studying, use space bar to mark card as ‘good’, use ‘j’ for ‘again’, and ‘k’ and ‘l’ for hard and easy
  • this works for cards with 2 or 4 buttons

Stopped working on 2.1.30 after I installed God mode add on.



@mfraidmylord: You have to decide which add-on you prefer. There’s nothing I can do.

Both add-ons modify the same parts of the reviewer, i.e. the functions _shortcutKeys and _answerCard.

My add-on makes the change in a way so that in general it should work with other add-ons. From a technical point of view I wrap a built-in function, i.e. I tell Anki that instead of just executing a built-in function it should execute some of my code and then the built-in function.

Godmode tells Anki to totally ignore the built-in function and instead use a custom one. So a true fix needs to be made by the godmode add-on. Though sometimes just wrapping is not enough and two add-ons are truely incompatible. It’s a bit unexpected to have code that modifies the reviewer in an add-on that’s mainly about easier cloze shortcuts in the editor.

Edit: I just looked at the source code of the godmode add-on and it has this remark: “I attempted to make GODMODE with its own limited shortcuts, but found that it interfered the above addon. So the easiest solution for me was to merge the two addons into one so that they don’t conflict.”

Add-ons are usually shared for free and so these are mainly tailored to the add-on creator and everything that makes life easier for an add-on creator is a good reason in my view even though sometimes it has side-effects for other potential users …

Edit2: Also see the issue I opened in the godmode repo

1 Like

Thank you!

Thank you for creating this add-on. I am not great with anki add-ons and programming in general. I have been using anki for over a year and recently got a typical presentation clicker that I am trying to program. I simply want to change “1” to “escape” , “2” to “page up” , “3” to “shift+5”, and “4” to “page down”. I have been having trouble adding this. If it sounds like I need it spelled out rather simply or help with what to directly copy and paste into the configure window for this add on, it is because I probably do…

Any advise is helpful! thank you!

@alexotto002: Maybe try this config:


if this doesn’t work there’s also the add-on Customize Keyboard Shortcuts.

Hey I am on the latest Mac OS Big Sur and the latest anki , for some reason my reviewer 1 and 2 command for h and j are not working. But the reviewer 2 and 3 are working. If this could be fixed that will be great. These are my configuration settings.

“adjust_the_meaning_of_the_answer_keys_depending_on_number_of_answer_buttons”: false,
“adjusted_answer_keys__second_key_for_less_than_four_buttons”: “ignore”,
“rate_from_question”: false,
“reviewer_1”: “h”,
“reviewer_2”: “j”,
“reviewer_3”: “k”,
“reviewer_4”: “l”

@arsh.appleid: I need more info:

  • Just to confirm: You are on Anki 2.1.35?
  • Did it work originally? If so: What changed since it last worked?
  • To narrow down the problem: Disable all other add-ons, restart Anki and try again. Does it work? If it does it’s an add-on conflict. Reenable half of your add-ons, restart and try again. If it still works reenable half of the remaining, restart, and try again and so on. Until you find the conflict. Then check the add-on configs if you can reconfigure the other add-on. if not you must decide which add-on to use.

I just tried on my computer and “h” and “j” work for me.

In general the most common source of problems is add-ons in Anki.

When it comes to shortcuts not working the most common source are conflicts: If Anki or another add-on has the same shortcut as my add-on these shortcuts don’t work. e.g. “h” is used by the add-on “Tag Toggler”, “Add tags by shortcuts in the Reviewer window”. “j” is also an easy to type = popular key for add-ons.

1 Like

Thanks you were right it was some other add-on , sorry for bugging you.

Anki’s 2.1.63 release is not compatible with this add on. 2 unique features that I like about this add on over the native implementation:

  1. customizable keys
    I changed the buttons to (j, k, l, ; ) as to not have to move my pointer finger to “h” to rate a card again. I find this to be more ergonomic over the default (h, j, k, l)

  2. “rate_from_question” = false
    While on the front side of cards, pressing a review button will show the back of the card and only rate the card once it has already been flipped.

I’m curious if this addon will be made compatible with future versions of Anki @ijgnd.

Additionally, I’m curious if “Add alternative review shortcuts (h,j,k,l,u)” could be made an opt in feature similar to “Add an option in the preferences to stop spacebar from rating card” so that this addon could still be compatible. @dae

1 Like

@tatsumoto the new shortcuts have caused a couple of breakages such as here and with card templates that add shortcut keys. Could you please send through a follow-up PR that makes them optional? It might be better to have them default to off, as while we could add a note about this in the change notes, I’m not sure a large percentage of users actually read them, and the note becomes less useful when users upgrade multiple versions at a time.

Ideally, I think we need them to be configurable, like what the Flexible Grading add-on offers. But for now an on-off switch should do.

upd: I ended up implementing configurable answer keys. The diff turned out short enough.

hey! i love this addon but i recently downloaded the most recent version of anki and the addon is not working :frowning:

I have this version of anki: Version ⁨2.1.63

was wondering if this problem was isolated to me

You can install AJT Flexible Grading to replace it.

@medanki @vendyp : Thanks for your reports. I’ve adjusted the compatibility info so that my add-on is disabled in the current anki version 2.1.63. In general I plan to make this add-on work with newer anki versions. Since the code for the shortcuts will be changed in 2.1.64 again (which should be coming very soon) I’ll skip .63 and once .64 is released I’ll check if my addon can be adjusted with a reasonable amount of effort.

tatsumoto suggests replacing my add-on with his “AJT Flexible Grading” add-on. I have never used this add-on. If you decide to switch to this one let me know if it fully replaces my add-on for you.


@ijgnd I’ve been using this add-on for years to do reviews with the arrow keys. I just wanted to add my (moral) support and say thank you for planning to fix this for those such as myself that use the latest Anki versions.

Since it appears that the two addons have overlapping features, instead of having them do the same thing we could instead merge them together into one add-on. And it would be easier to maintain since more people would be working on it.