diff --git a/index.html b/index.html
index 4d49e07d..1d37913f 100644
--- a/index.html
+++ b/index.html
@@ -183,7 +183,15 @@
selectedChanged: function() {
if (this.selected == 'code') {
this.designToCode();
- this.$.code.refresh();
+ this.$.code.refresh();
+ this.async(function() {
+ this.$.code.focus();
+ // TODO(sorvell): we want to fold the