private-face / jquery.fullscreen

jQuery plugin for opening page elements in fullscreen mode.
MIT License
148 stars 83 forks source link

How To restrict user to not leave the exam window in online exam conduction? #43

Open HasaanSultan opened 5 years ago

HasaanSultan commented 5 years ago

I am Developing a React Application for online MCQS exams. I want to restrict the user to not leave the exam screen until it completes the exam or time goes over. I used React Full-screen component for full screen,but on pressing the esc button it leaves the full screen. Is there any other way to achieved full screen rather than Full Screen API. Or any other way to implement the restrictions of online exam conduction. Also I want to Handle Some Key combinations like Alt+F4 , Ctrl+Shift+Tab.

I have used the Event Handler for the keyDown for esc button. but it fires after the full screen closes. Also I have Used Event Handler for F4 and all keyboard keys. but Alt+F4 close the browser.