diff --git a/content/welcome.article b/content/welcome.article index 7c50057..b7084f7 100644 --- a/content/welcome.article +++ b/content/welcome.article @@ -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. diff --git a/static/js/values.js b/static/js/values.js index 3d35864..a354083 100644 --- a/static/js/values.js +++ b/static/js/values.js @@ -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(); - }, } } -}); \ No newline at end of file +});