Prevent function keys  SOLVED

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

Prevent function keys

Post by MartinCS »

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: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Prevent function keys  SOLVED

Post by Tracker Supp-Stefan »

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