Fullscreen on keydown

marius's Avatar

marius

14 Oct, 2012 10:43 PM

Hi,

Is there any way to enter fullscreen by pressing 'f'?

Thank you for any help!

  1. Support Staff 1 Posted by Dmitry Semenov on 15 Oct, 2012 05:55 AM

    Dmitry Semenov's Avatar

    Hi,

    $(document).on('keydown.rscustom', function(e) { 
        if(e.keyCode === 70) $('.royalSlider').royalSlider('enterFullscreen');
    });
    

    Dmitry

  2. marius closed this discussion on 15 Oct, 2012 08:48 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac