From 75dcf40df52690c0471191f191daf6a5ddcee7e6 Mon Sep 17 00:00:00 2001 From: Borys Levytskyi Date: Sun, 5 Apr 2015 00:13:21 +0300 Subject: [PATCH] do not dispatch empty commands --- app/controllers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers.js b/app/controllers.js index f12555c..e2c0860 100644 --- a/app/controllers.js +++ b/app/controllers.js @@ -17,7 +17,7 @@ app.compose(function() { this.viewElement.addEventListener('keyup', function (args) { var inpt = args.srcElement; - if (args.keyCode != 13) { + if (args.keyCode != 13 || inpt.value.trim().length == 0) { return; }