Search code examples
c#silverlightsilverlight-3.0

How to Disable F11 key


I want to disable the F11 key in my Silverlight application because I don't want a user to switch to full-screen mode.

Or is there a way I can write my code for F11 key event? I tried with key down event , but not working for F10 and F11 and set of other keys .


Solution

  • I suspect the browser has precedent over the Silverlight plugin.

    You could use Javascript to disable key input. Here's a blog post about how: Disable ctrl + n and other ctrl + key combinations in JavaScript