GateOne
GateOne copied to clipboard
disable Ctrl+n to open new browser
is there a way in gateway to disable Ctrl+N to open new browser in chrome?
I searched google but don't get the answer, thanks.
This is an issue in Chrome itself. There's a number of Ctrl key combinations that they do not allow JavaScript to override:
- Ctrl-N
- Ctrl-Shift-N
- Ctrl-T
- Ctrl-Shift-T
- Ctrl-W
Personally I hate this and think it was a very, very bad decision on the part of the Chrome developers. It has been debated over and over again and they basically overruled common sense. Their "solution" is to launch the website in question in "application mode":
Menu -> Tools -> Create Application Shortcuts
If you do that while viewing your Gate One server it will create a shortcut on your desktop (just what we need--more shortcuts on the desktop) which you can then use to launch Gate One in a special Chrome window that allows you to use Ctrl-N.
I tried to get this fixed a LOOOONG time ago when it was an open bug:
https://code.google.com/p/chromium/issues/detail?id=84332
When they added the application shortcut thing they closed that issue... Even though it didn't really solve anything and creates new problems.
IMPORTANT:
There has been a proposal to remedy this situation that has been open for a long time now with absolutely zero progress:
https://code.google.com/p/chromium/issues/detail?id=33056
If you're like me and you think this is a seriously bad judgement on behalf of the Chrome developers please star that open bug and make a comment on that page asking the devs, "WTF? Seriously?" :smile:
WTF? Seriously?
Gate One does disable ctrl-n and ctrl-t but the Chrome developers--in their infinite wisdom--decided that no web app should be allowed to override those shortcuts. I opened a bug about it years ago and it was closed with "wontfix".
There's a workaround but it isn't very convenient and it only works on Linux and Windows (not Macs): Add your Gate One server as an " application shortcut" on your desktop via the utilities menu. When you open a web app via that shortcut mechanism it actually enables the full W3C spec to allow overriding all shortcuts.
I highly recommend opening another bug on the matter. It really is stupid, annoying, and a bug.
can we do in any other way to prevent hot keys and shortcut key in chrome.