I was making a proof-of-concept of integrating PDF.JS into a Xojo Desktop app and I added a listbox listing all PDFs in a folder, so upon clicking on each the PDF would be displayed in the viewer.
Now when I click on a row the viewer is updated correctly, but the listbox loses focus (so I can’t do quick down-arrow loading, which was the idea of the listbox).
Is this normal? How can I prevent it? I’d prefer the viewer to gain focus when clicked on.
Sample Project here: https://github.com/eduo/XojoPdfJs