jdlorimer / incremental-reading

Anki add-on providing incremental reading features
https://ankiweb.net/shared/info/935264945
ISC License
216 stars 38 forks source link

Cannot add Ctrl+B/Ctrl+F for PgUp/PgDown any more. #32

Open aleksejrs opened 6 years ago

aleksejrs commented 6 years ago

I've been adding Ctrl+B (PgUp), Ctrl+F (PgDn), Ctrl+D (half PgDn) and maybe Ctrl+U (half PgUp) Vim-like shortcuts, but recently that stopped working on IR v4 (Anki 2.1b20).

Doesn't work with 4.7.5 + 1 commit and newer:

                          ('Up', self.viewManager.lineUp),
                          ('Down', self.viewManager.lineDown),
                          ('Ctrl+B', self.viewManager.pageUp),
                          ('Ctrl+F', self.viewManager.pageDown),
                          ('PgUp', self.viewManager.pageUp),
                          ('PgDown', self.viewManager.pageDown)]

It still works on 3.8.2 (Anki 2.0.x)

    def addShortcuts(self):
        addShortcut(self.lineUp, 'Up')
        addShortcut(self.lineDown, 'Down')
        addShortcut(self.pageUp, 'PgUp')
        addShortcut(self.pageDown, 'PgDown')
        addShortcut(self.pageUp, 'Ctrl+B')
        addShortcut(self.pageDown, 'Ctrl+F')
        addShortcut(self.zoomIn, 'Ctrl+=')
jdlorimer commented 6 years ago

Ignore my last post. I'll see if I can reproduce this.

aleksejrs commented 6 years ago

This has been working for some time, but at least right now, Ctrl+B does not work (the key combination, no matter how I use it). Maybe it is used elsewhere.