Close pane for pdf

the close pane hotkey does not work well when viewing a pdf. it is weird having a shortcut that works on almost all the files but not files I’m referencing (like pdfs)