Is it possible to trap "command+shift+w" in mousetrap? Cause I try to do
Mousetrap. bindGlobal('command+shift+w', (e) => {
//some actions
});
and my browser(Chrome) window is getting closed. Could I prevent browser from closing on this shortcuts in some way only for specified page of my app?
I tried the following and it worked fine...
If using windows make sure to use the windows key as opposed to command on mac.
If you are pressing CTRL SHIFT W , then that will shut the browser down. There are certain commands that are restricted to browser use only. See this post for more details javascript capture browser shortcuts (ctrl+t/n/w)