It will be a "shoot", although I leave you an exercise to find the correct code.
As the other guy said, you can't do anything about it. It is purposefully limited.
However, let's say I have a wysiwyg editor in javascript that supports getting ctrl + s and saving, you have to be able to do it yourself and save anyway.
After all, it is a matter of context (focus), and which sometimes fails (again, purposefully).
source
share