Feature Request: support page up/page down

For whose who are annotating large documents, it would be really, really useful if page up/page down would be supported in order to quickly scroll the document (I am using Firefox and the page up/down keys do nothing).

Thank you,
Regards
Piercarlo

Thanks for the suggestion, I didn't realise that this currently didn't work! I just had a quick look and I think the underlying problem is that by default, the scrollable area isn't in focus so the up/down keys don't do anything.

As a workaround, you could add the following as "javascript" to your prodigy.json:

document.body.addEventListener('keydown', event => {
    if (event.keyCode == 38 || event.keyCode == 40) {
        document.querySelector('.prodigy-annotator').focus()
    }
})

This will focus the scrollable window whenever you press the or keys on your keyboard.

Hi Ines,

what do you exacly mean by "as javascript"?

I have added the following:

{
	"javascript": "document.body.addEventListener('keydown', event => {if (event.keyCode == 38 || event.keyCode == 40) {document.querySelector('.prodigy-annotator').focus()}})"
}

but it doesn't work (I mean, still nothing happen when I press pg down/up, and no errors in the the browser console).

Thank you,
Piercarlo