No shortcuts until PDF opened

PDF-XChange Editor SDK for Developers

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

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 » Wed Nov 22, 2017 2:56 pm

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
- http://help.tracker-software.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
- http://help.tracker-software.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: 13801
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: No shortcuts until PDF opened

Post by Tracker Supp-Stefan » Wed Nov 22, 2017 3:27 pm

Hello vdd iqware,

Can you please try using the

Code: Select all

Doc.ActiveView.PagesView.Obj.SetInputFocus(true);
As discussed here:
https://www.tracker-software.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 » Thu Nov 23, 2017 8:34 am

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

User avatar
Sasha - Tracker Dev Team
User
Posts: 4594
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: No shortcuts until PDF opened

Post by Sasha - Tracker Dev Team » Thu Nov 23, 2017 9:35 am

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
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
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 » Thu Nov 23, 2017 9:46 am

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

User avatar
Sasha - Tracker Dev Team
User
Posts: 4594
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: No shortcuts until PDF opened

Post by Sasha - Tracker Dev Team » Thu Nov 23, 2017 10:21 am

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
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply