Page 1 of 1

Prevent function keys

Posted: Wed Jan 10, 2018 11:39 am
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

Re: Prevent function keys  SOLVED

Posted: Wed Jan 10, 2018 12:25 pm
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