Skip to main content

Microsoft Silverlight

Answered Question how to disable f11 key in xaml fileRSS Feed

(0)

bobbby
bobbby

Member

Member

53 points

173 Posts

how to disable f11 key in xaml file

to disable f11 key in xaml file i tried below function

document.onkeydown = function() {

 

if (122 == event.keyCode) {

event.keyCode = 0;

return false;

}

}

 

but its not working i given this in index.aspx page

once i clicked inside login page the f11 is not disabling

how to disable the f11 key in xaml page also

Bobby

ccoombs
ccoombs

Contributor

Contributor

5174 points

761 Posts

Answered Question

Re: how to disable f11 key in xaml file

pay attention to your own posts.  i already answered this:

http://silverlight.net/forums/t/120165.aspx

f11 alters browser state.  you can't disable it.  i'm sure you'd like to, but if you could then you'd also be able to maliciously lock someone into browser fullscreen mode (not sl fullscreen mode) and many many people would not know how to get out.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities