I am looking for any method in java-script/jquery for triggering event when system-monitor is locked (Windows+L or Auto Lock), that time we need to push an entry to the database through Ajax Call.
If the browser is not in focus, I highly doubt you will catch the key events. There is also no events that tell you if the computer is locked, there really is no reason why a browser should know it.