Skip to content

Commit

Permalink
Don't capture 'Escape'
Browse files Browse the repository at this point in the history
Fixes #577
  • Loading branch information
tjvr committed Mar 22, 2016
1 parent 7fc9252 commit c0a3946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phosphorus.js
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ var P = (function() {
this.root.style.WebkitTransform = 'translateZ(0)';

this.root.addEventListener('keydown', function(e) {
if (e.ctrlKey || e.altKey || e.metaKey) {
if (e.ctrlKey || e.altKey || e.metaKey || e.keyCode === 27) {
return;
}
if (!this.keys[e.keyCode]) this.keys[128]++
Expand Down

0 comments on commit c0a3946

Please sign in to comment.