On Windows system pressing Win + L will lock the workstation. Is there a way within XUL addon detect when workstation is being locked down? I could probably detect pressing this key combination, but it would only work if XUL application in focus.
There is a sleep_notification available for when computer is going into sleep mode (or waking up). I can't find any information about locking workstation.
Found a way using js-ctypes (tested on Windows 10):