No shortcuts until PDF opened

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
vdd iqware
User
Posts: 1
Joined: Fri Nov 18, 2011 2:18 pm

No shortcuts until PDF opened

Post 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
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17818
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: No shortcuts until PDF opened

Post 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
JeroenG
User
Posts: 16
Joined: Tue Feb 14, 2017 2:18 pm

Re: No shortcuts until PDF opened

Post 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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: No shortcuts until PDF opened

Post 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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
JeroenG
User
Posts: 16
Joined: Tue Feb 14, 2017 2:18 pm

Re: No shortcuts until PDF opened

Post 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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: No shortcuts until PDF opened

Post 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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply