Image Occlusion Toggle Mask not working on keyboard or on 8BitDo Controller

  • Using Image Occlusion Card type (current code and other codes tried pasted below)
  • Using 8BitDo Zero2 with Contanki (had Karabiner, that didn’t work either, not looking to switch off Contanki)
  • Most recent update of Anki and Contanki
  • tried altering hotkey assignment with Customize Keyboard Shortcuts Add On (tried all other approaches with and without this Add On)
  • opening anki with Shift still does not work for keyboard hot keys


{{#Header}}<div>{{Header}}</div>{{/Header}}
<div style="display: none">{{cloze:Occlusion}}</div>
<div id="err"></div>
<div id="image-occlusion-container">
    {{Image}}
    <canvas id="image-occlusion-canvas"></canvas>
</div>
<script>
try {
    anki.imageOcclusion.setup();
} catch (exc) {
    document.getElementById("err").innerHTML = `Error loading image occlusion. Is your Anki version up to date?<br><br>${exc}`;
}
</script>

<div><button id="toggle" accesskey="g"> Toggle Masks </button></div>

{{#Back Extra}}<div>{{Back Extra}}</div>{{/Back Extra}}

*tried with “accesskey=“g”” removed as well



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