Page 1 of 1

No shortcuts until PDF opened

Posted: Wed Nov 22, 2017 2:56 pm
by vdd iqware
Hi,

Shortcuts (like CTRL+O and F1) are not working until a PDF is opened and you click once on the a page of the PDF.

It can be reproduced with the FullDemo project.
1. Start demo
2. Press CTRL+O
- Open dialog is not showing
3. Press F1
- https://help.pdf-xchange.com/pdfxe6/ , is not showing

4. Open a PDF (via the menu), and click one time on a page of the opened PDF
5. Press CTRL+O
- Open dialog will pop up
6. Press F1
- https://help.pdf-xchange.com/pdfxe6/ , will open in browser

Is there a work-around, so shortcuts will work immediately after starting the editor?

Adding this to the code, does not make any difference (shortcuts are allowed by default).

Code: Select all

 pdfCtl.AllowedShortcuts = true;
Kind regards,
Jeroen

Re: No shortcuts until PDF opened

Posted: Wed Nov 22, 2017 3:27 pm
by Tracker Supp-Stefan
Hello vdd iqware,

Can you please try using the

Code: Select all

Doc.ActiveView.PagesView.Obj.SetInputFocus(true);
As discussed here:
https://www.pdf-xchange.com/forum3 ... us#p106009
And see if that helps?

Cheers,
Stefan

Re: No shortcuts until PDF opened

Posted: Thu Nov 23, 2017 8:34 am
by JeroenG
Hi Stefan,

No that is not an option. Because there is not a document open.

I want to open a document by pressing CTRL+O directly after a start the Demo. When the AxPXV_Control is still empty.
Or go to the Help-page by pressing F1.

Regards,
Jeroen

Re: No shortcuts until PDF opened

Posted: Thu Nov 23, 2017 9:35 am
by Sasha - Tracker Dev Team
Hello Jeroen,

Well then just focus the control itself.

Code: Select all

pdfCtl.Focus();
It does not have a focus on the start because it's just a component on a form and it should not catch all of the events from the start as there can be other controls.

Cheers,
Alex

Re: No shortcuts until PDF opened

Posted: Thu Nov 23, 2017 9:46 am
by JeroenG
Hi Alex,

Unfortunately that's not working either.
Even when I click inside the empty canvas (to be sure it has focus), shortcuts are not working.
There is no shortcut working until a document is opened.

Regards,
Jeroen

Re: No shortcuts until PDF opened

Posted: Thu Nov 23, 2017 10:21 am
by Sasha - Tracker Dev Team
Hello Jeroen,
Even when I click inside the empty canvas (to be sure it has focus), shortcuts are not working.
This is fixed now and will be available from the next major release (323) in a couple of weeks or so.

Cheers,
Alex