Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Commit

Permalink
go-tour: use ctrl-enter to fmt, not shift-space
Browse files Browse the repository at this point in the history
Apparently I type shift-space a lot when I type,
so this new shortcut key gets in my way.
I suppose I'm not the only one.

LGTM=campoy
R=campoy, golang-codereviews
CC=golang-codereviews
https://codereview.appspot.com/117250045
  • Loading branch information
adg committed Jul 29, 2014
1 parent c4921af commit 20d25be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion content/welcome.article
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ These example programs demonstrate different aspects of Go. The programs in the

Edit the program and run it again.

Note that when you click on [[javascript:highlightAndClick("#format")][Format]] or `shift-space`
Note that when you click on [[javascript:highlightAndClick("#format")][Format]] or `ctrl-enter`
the text in the editor is formatted using the
[[http://golang.org/cmd/gofmt/][gofmt]] tool. You can switch on and off syntax highlighting
the clicking on [[javascript:highlightAndClick(".syntax-checkbox")][syntax]] button.
Expand Down
8 changes: 4 additions & 4 deletions static/js/values.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ value('ui.config', {
'Shift-Enter': function() {
$('#run').click();
},
'Ctrl-Enter': function() {
$('#format').click();
},
'PageDown': function() {
return false;
},
'PageUp': function() {
return false;
},
'Shift-Space': function() {
$('#format').click();
},
}
}
});
});

0 comments on commit 20d25be

Please sign in to comment.