Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

auto-run demo on <enter> while typing in block information

  • Loading branch information...
commit 86f2e234c856ee02e05f02aed4cf179fb7445b12 1 parent b9745ef
@jakesgordon jakesgordon authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 js/demo.js
View
5 js/demo.js
@@ -42,6 +42,11 @@ Demo = {
Demo.el.color.change(Demo.run);
Demo.el.examples.change(Demo.blocks.examples.change);
Demo.run();
+
+ Demo.el.blocks.keypress(function(ev) {
+ if (ev.which == 13)
+ Demo.run(); // run on <enter> while entering block information
+ });
},
//---------------------------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.