Skip to content

Commit

Permalink
Merge pull request #1245 from amaclean199/master
Browse files Browse the repository at this point in the history
Hitting enter deselects like clicking away
  • Loading branch information
alexjsmac committed Oct 26, 2015
2 parents 2cc2b5b + 958d26c commit 328419d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -1366,11 +1366,11 @@ function handleEnter(evt) {
if(code === 13){
var wb = dom.closest(evt.target, 'wb-value');
wb.deselect();
selectByValue(null);
selectByBlock(null);
app.clearFilter();
var input = wb.getElementsByTagName('input');
input[0].blur();
var oldBlock = dom.find(workspace, '.selected-block');
oldBlock.classList.remove('selected-block');
}
return false;
}
Expand Down

0 comments on commit 328419d

Please sign in to comment.