diff --git a/godoc/static/playground.js b/godoc/static/playground.js index 70e0c802..84011579 100644 --- a/godoc/static/playground.js +++ b/godoc/static/playground.js @@ -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; diff --git a/godoc/static/static.go b/godoc/static/static.go index 42dfa073..6b288833 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -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;