Open ipstone opened 6 years ago
I can confirm that the shortcuts supported by pdf.js are working. A list of these can be found in the pdf.js FAQs, here. One problem you might face, which I did, is that some shortcuts are common to vscode's workbench shortcuts. For instance, the default zoom-in shortcut, Ctrl +, is by default assigned to workbench.action.zoomIn. This overrides the pdf zoom function, resulting in the whole workbench being zoomed in instead of just the pdf. I get around this by assigning a different shortcut to the workbench action, like Ctrl Alt +. This frees up the pdf.js shortcut and it works nicely on just the pdf.
@tomoki1207, I think a premanent solution to this would involve defining default keyboard shortcuts for this extension that are displayed under File>Preferences>Keyboard Shortcuts. Also setting their priority higher than those for workbench actions, if priority setting is possible. This is just thinking how it could be implemented, I'm not really sure of the low level code. I haven't worked on a vscode extension, though I'm open to try my hand at it if the approach seems fine to you :)
Hello,
I would like to propose a future feature of keyboard shortcut, such as those in mupdf? We can have some simple keybindings (such as j, k, . and , navigation keys) first. Not sure if these are already configurable or not. Thanks
Here are the info from mupdf man page: KEY BINDINGS Page navigation: