Accelerators allow

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Accelerators allow

Post by Dorwol »

Hello,

I want to allow only some Accelerators (Ctrl+c, Ctrl+v, Ctrl+x). But not all the others.

How can I do that?

Is there a list of all available Standard-hotkeys - and can I disable this one by one?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19883
Joined: Mon Jan 12, 2009 8:07 am

Re: Accelerators allow

Post by Stefan - PDF-XChange »

Hello Dorwool,

Please check section 2.2.4 Simple Notifications in the Viewer AX Manual,

Starting from there you should be able to intercept any key, or combination of keys - and either do nothing or execute the default viewer action for the key accelerators you want to keep active.

Best,
Stefan
Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Re: Accelerators allow

Post by Dorwol »

Tracker Supp-Stefan wrote:or combination of keys
Thanks. But this is exactly the problem. The Viewer Events does not give me the information, if the user has pressed down Ctrl+<Key>

Only if the user press "Ctrl" (DataIn=17) or "v" (DataIn=86) - but not a combination of this keys. Or where can I see, if the user presssed "Ctrl+v" in combination(!) ?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19883
Joined: Mon Jan 12, 2009 8:07 am

Re: Accelerators allow

Post by Stefan - PDF-XChange »

Please also check

Objects.Notifications.Keyboard:
2.2.2.10.7 Keyboard

And if the user presses e.g. "v" - you can check if Ctrl is also pressed and not yet released. (No Key Up notification).

Best,
Stefan
Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Re: Accelerators allow

Post by Dorwol »

sounds good!

Will check it... THX!
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19883
Joined: Mon Jan 12, 2009 8:07 am

Re: Accelerators allow

Post by Stefan - PDF-XChange »

:)