3 ms·
#1 Fix the F-11 message. Is this an IE thing? Do a browser detect, and display the right message. No, it's an IE, Firefox, Chrome and Opera-thing. All browsers
by Too 15y ago
#1 Fix the F-11 message. Is this an IE thing? Do a browser detect, and display the right message.
No, it's an IE, Firefox, Chrome and Opera-thing. All browsers use F11 for fullscreen and i don't think there's an api for reading which button they use anyway. :P
- ajanuary 15y agoNot on OS X. I'm sure I've seen a tiny js library on github that does browser sniffing and gives you the relevant keyboard shortcut. Can't find it now.
- Timothee 15y agoThere isn't an API for that, but it's super easy to check the current browser/platform and update the text accordingly. And you don't really need any library: http://www.w3schools.com/jsref/obj_navigator.asp http://www.w3schools.com/jsref/obj_navigator.asp