Remap scroll to other key

I hate scrolling down with my hand on my tablet, I need to rebind pagedown to another key in anki.

there was an addon for this that used vim shortcuts but that no longer works:

Anki 24.04.1 (832d7b16) (src) (ao)
Python 3.12.4 Qt 6.7.2 PyQt 6.7.0
Platform: Linux-6.9.7-arch1-1-x86_64-with-glibc2.39

Traceback (most recent call last):
File “/usr/lib/python3.12/site-packages/aqt/”, line 50, in cmd
return json.dumps(self.onCmd(str))
File “/usr/lib/python3.12/site-packages/aqt/”, line 157, in _onCmd
return self._onBridgeCmd(str)
File “/usr/lib/python3.12/site-packages/aqt/”, line 686, in onBridgeCmd
return self.onBridgeCmd(cmd)
File “/usr/lib/python3.12/site-packages/aqt/”, line 97, in linkHandler“review”)
File “/usr/lib/python3.12/site-packages/aqt/”, line 740, in moveToState
getattr(self, f"
{state}State", lambda *
: None)(oldState, *args)
File “/usr/lib/python3.12/site-packages/aqt/”, line 761, in _reviewState
File “/usr/lib/python3.12/site-packages/aqt/”, line 169, in show # type: ignore
File “/usr/lib/python3.12/site-packages/”, line 232, in fun
return caller(func, *(extras + args), **kw)
File “/usr/lib/python3.12/site-packages/anki/”, line 89, in decorator_wrapper
return repl(*args, **kwargs)
File “/usr/lib/python3.12/site-packages/anki/”, line 81, in repl
return new(*args, **kwargs)
File “/home/leah/.local/share/Anki2/addons21/981580052/”, line 39, in add_jkJK_shortcuts
scut = QShortcut(QKeySequence(key), self, activated=fn) # type: ignore
TypeError: arguments did not match any overloaded call:
QShortcut(parent: Optional[QWidget]): argument 1 has unexpected type ‘QKeySequence’
QShortcut(key: Union[QKeySequence, QKeySequence.StandardKey, Optional[str], int], parent: Optional[QWidget], member: PYQT_SLOT = None, ambiguousMember: PYQT_SLOT = None, context: Qt.ShortcutContext = Qt.WindowShortcut): argument 2 has unexpected type ‘AnkiQt’

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AMBOSS add-on [‘0amboss_addon’, 2023-10-17T23:29, ‘None’, ‘’]
Anki Leaderboard - Compete with friends to boost motivation Fork by Shige [‘175794613’, 2024-07-06T15:40, ‘None’, mod]
Anki Simulator [‘817108664’, 2023-11-06T18:26, ‘None’, ‘’]
AnkiDraw - Draw and write using mouse and stylus with pressure support [‘1868980340’, 2024-04-04T20:20, ‘None’, ‘’]
CSS Injector - Change default editor styles [‘181103283’, 2023-02-21T22:15, ‘None’, ‘’]
Countdown To Events and Exams [‘1143540799’, 2022-06-27T13:50, ‘None’, ‘’]
Customize Keyboard Shortcuts [‘24411424’, 2023-11-01T10:17, ‘None’, ‘’]
Deadline2 [‘723639202’, 2024-02-26T04:38, ‘None’, mod]
Enhanced Cloze for Anki 21 [‘1990296174’, 2023-09-10T20:48, ‘None’, mod]
Hitmarkers [‘1776869150’, 2024-02-24T12:19, ‘None’, ‘’]
Image Occlusion Enhanced [‘1374772155’, 2022-04-09T09:15, ‘None’, ‘’]
Life Drain [‘715575551’, 2024-04-30T09:15, ‘None’, mod]
No Distractions Full Screen Fixed by Shige [‘1370336700’, 2024-03-05T14:25, ‘None’, mod]
Projekt Anki Notetypes - Ankizin und Co [‘2058530482’, 2024-06-26T17:54, ‘None’, mod]
Refocus Card when Reviewing 21 [‘1642550423’, 2018-09-19T16:14, ‘None’, ‘’]
Review Heatmap [‘1771074083’, 2022-06-30T03:43, ‘None’, ‘’]
Scroll in reviewer with vivim-like keys j and k [‘981580052’, 2021-09-05T00:51, ‘None’, ‘’]
Speed Focus Mode auto-alert auto-reveal auto-answer [‘1046608507’, 2022-12-16T12:24, ‘None’, mod]
Study Time Stats [‘1247171202’, 2024-02-24T17:59, ‘None’, ‘’]

===IDs of active AnkiWeb add-ons===
1046608507 1143540799 1247171202 1370336700 1374772155 1642550423 175794613 1771074083 1776869150 181103283 1868980340 1990296174 2058530482 24411424 715575551 723639202 817108664 981580052

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AMBOSS Official Medical School Step Shelf Study Resource [‘1044112126’, 2999-01-01T01:00, ‘None’, ‘’]
Anki Killstreaks [‘579111794’, 2021-12-15T16:20, ‘None’, ‘’]
AnkiHub [‘1322529746’, 2024-06-17T11:56, ‘None’, ‘’]
AnkiWebView Inspector [‘31746032’, 2023-06-27T21:26, ‘None’, ‘’]
Audiovisual Feedback [‘231569866’, 2023-07-09T05:34, ‘0.8’, mod]
Custom Background Image and Gear Icon [‘1210908941’, 2023-04-19T03:19, ‘None’, mod]

1 Like

Looks like a common PyQt error with older addons. Might be pretty easy to fix? @Shigeyuki you’ve done a lot of these kinds of small updates to older addons, maybe you’re interested? Scroll in reviewer with vi/vim like keys j and k


Thanks for the request, I fixed it and uploaded it to AnkiWeb.

AnkiWeb : :computer_mouse:Scroll in reviewer with vi/vim-like keys j and k (Fixed by Shige)

  1. I developed and added a UI for options.
  2. Added function to change shortcut keys.


1 Like

you are the goat <3333

for some reason this still does not work for me, I’ve tried settting the keybind to other keys/disabling all other plugins without effect, is this plugin linux compatible?



with the anki projekt nottype under Advanced->custom styles

#qa #container { overflow-y: unset ! important; }

1 Like

Thank you for the info, I added the description to the add-on page.