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:
parent
a94a6a54d1
commit
ba844075b3
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue