Can't use hotkeys in new pdf view

Steps to reproduce

Open a pdf in the new pdf view(Obsidian v0.10.8) and click on pdf. Try to use Ctrl + o or Ctrl + p. Same problem in embed if you click on pdf.

Expected result

Opens quickswitcher or command prompt

Actual result

Nothing happens

Environment

  • Operating system: Windows
  • Obsidian version: v0.10.8

Additional information

There is a similar problem in vscode with pdfs. I dont know if it is the same source for the problem.

we won’t be able to fix this.

I already thought that, but at least I tried.

2 Likes

A workaround I found is to click on the pane of the PDF, not the contents.

Well, technically you can click anywhere that is outside the PDF and it would get the hotkeys to work again, but clicking on the pane itself has allowed me to do things that are specific to that pane; an example would be to maximize using the Maximize Active Pane plugin, where you would need to have the PDF active in order to do so.


I do have a related concern however, Imma ask here in case if it’s impossible to fix/add for the devs also.

In Mac (and Windows depending on the touchpad), we can use the trackpad to zoom in and out on a page and PDF like we would with an iPad or phone, yet this functionality is absent in Obsidian’s PDF viewer; though we have the zoom in and out buttons, it’s just not the same IMO. Is this likely to be included in a future update or is this also unfixable?

I can totally agree with you.

Does the trackpad work in the pdf viewer of chrome?

Yes it does.

1 Like

Ok it’s working in chrome. Likely it’s not working in Obsidian for the same reasons. We’ll look into it.

1 Like

Yes it works

Steps to reproduce

  1. Open a pdf inside the app via a link
  2. Try to naviagte back via the hotkey (i have mine set to ⌘ <-

Expected result

I expect it to naviagte back

Actual result

Nothing. I have to click on a file in the file directory or backlink sidebars to naviagte. Once I return to the pdf it works, but it’s that FIRST time I open the pdf that it gets stuck.

Environment

  • Operating system: mac
  • Obsidian version: newest, it’s been a problem for a long time