diff --git a/src/snek/templates/web.html b/src/snek/templates/web.html
index 8f990a7..892f1b3 100644
--- a/src/snek/templates/web.html
+++ b/src/snek/templates/web.html
@@ -272,7 +272,10 @@
}
}
if (event.shiftKey && event.key === 'G') {
- updateLayout(true);
+ if(document.activeElement != getInputField()){
+ updateLayout(true);
+ }
+
}
});