librustdoc: don't override ctrl-s and other browser shortcuts
This commit is contained in:
parent
7839827a39
commit
3b2a8e1259
|
@ -101,6 +101,10 @@
|
|||
if (document.activeElement.tagName == "INPUT")
|
||||
return;
|
||||
|
||||
// Don't interfere with browser shortcuts
|
||||
if (ev.ctrlKey || ev.altKey || ev.metaKey)
|
||||
return;
|
||||
|
||||
switch (getVirtualKey(ev)) {
|
||||
case "Escape":
|
||||
if (!$("#help").hasClass("hidden")) {
|
||||
|
|
Loading…
Reference in New Issue