mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-23 21:22:48 +01:00
do not dispatch empty commands
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user