go.tools/godoc/static: don't capture ctrl-tab in editor

This fixes an issue where Firefox users can't ctrl-tab out to switch
to other tabs when using the playground.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/106020043
This commit is contained in:
Andrew Gerrand 2014-06-16 11:36:20 +10:00
parent a94a6a54d1
commit ba844075b3
2 changed files with 2 additions and 2 deletions

View File

@ -275,7 +275,7 @@ function PlaygroundOutput(el) {
}
function keyHandler(e) {
if (e.keyCode == 9) { // tab
if (e.keyCode == 9 && !e.ctrlKey) { // tab (but not ctrl-tab)
insertTabs(1);
e.preventDefault();
return false;

View File

@ -2304,7 +2304,7 @@ function PlaygroundOutput(el) {
}
function keyHandler(e) {
if (e.keyCode == 9) { // tab
if (e.keyCode == 9 && !e.ctrlKey) { // tab (but not ctrl-tab)
insertTabs(1);
e.preventDefault();
return false;