Disable Keyboard Shortcut keys

Forum for the PDF-XChange Editor - Free and Licensed Versions

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

Post Reply
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Disable Keyboard Shortcut keys

Post by docu-track99 »

Hi Tracker,

In our application, we disabled "Show page thumbnails" from the menu but our users can use shortcut keys (CTRL T) to show page thumbnails. Is there away we could disable this keyboard shortcut keys?

Any help will be appreciated.
User avatar
Bhikkhu Pesala
User
Posts: 1776
Joined: Tue May 29, 2007 9:29 am
Location: East London
Contact:

Re: Disable Keyboard Shortcut keys

Post by Bhikkhu Pesala »

You can edit any shortcuts to suit your needs.

1. Right-click on any toolbar to open the Customize Toolbars dialogue
2. Select the Commands tab
3. Search for Thumbnails
4. Edit the properties and delete the Ctrl T shortcut
Windows 10 Home 64-bit • AMD Ryzen 5 3400G, 8 Gb
Review: http://www.softerviews.org/PDF-XChange.html
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Disable Keyboard Shortcut keys

Post by Will - Tracker Supp »

Hi guys,

Thanks for the posts - docu-track99; are when you say "your own app", are you referring to the Editor deployed with custom settings, or an application that you have created with the SDK?

Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Disable Keyboard Shortcut keys

Post by docu-track99 »

Created app using the SDK. Can we programmatically disable the shortcut key (CTRL T) for showing page thumbnails?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Disable Keyboard Shortcut keys

Post by Tracker Supp-Stefan »

Hello docu-track99,

Did you try to intercept keyboard notifications and then just tell the Editor to ignore the desired key combination:
https://help.pdf-xchange.com/DEV/de ... s_keyboard

Regards,
Stefan
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Disable Keyboard Shortcut keys

Post by docu-track99 »

Hi Stefan,

How do you intercept key combination (CTRL T)? Would you be able to provide us a sample code?

Thank you.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Disable Keyboard Shortcut keys

Post by Tracker Supp-Stefan »

Hi docu-track,

As discussed here:
https://forum.pdf-xchange.com/ ... 36&t=12761
You can listen for the "KEY DOWN" for the first of the combination of keys, and if that key is still down when the second event triggers - then you have the desired key combination pressed. If the first key triggers "Key UP" event - then stop listening for the second one.

Regards,
Stefan
Post Reply