Prevent function keys  SOLVED

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
User avatar
MartinCS
User
Posts: 152
Joined: Thu Apr 07, 2011 10:01 am
Contact:

Prevent function keys

Post by MartinCS » Wed Jan 10, 2018 11:39 am

Hello Tracker-Team,

is there a method available to suppress function keys for F8 and F9 in order to disable the posibility to hide menu bar and toolbar?

// Martin

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

Re: Prevent function keys  SOLVED

Post by Tracker Supp-Stefan » Wed Jan 10, 2018 12:25 pm

Hi Martin,

I spoke with Sasha, and he says that there are two different approaches to achieve this and which one you will use will depend on what you want.
You can intercept the keystrokes in the MainFrame or you can use the keystrokes for the command in the UI. If you would like to intercept the keystrokes in the MainFrame's object then a custom event target should be implemented for this object:
https://gist.github.com/Polaringu/f3de7 ... 65695e364c

But Sasha thinks it would be better "if you brutally disable it" :D

Cheers,
Stefan

Post Reply