From c0a3946550e121416487a2f7c33863d890c932ee Mon Sep 17 00:00:00 2001 From: tjvr Date: Tue, 22 Mar 2016 16:17:51 +0000 Subject: [PATCH] Don't capture 'Escape' Fixes #577 --- phosphorus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phosphorus.js b/phosphorus.js index 11c180b2..fadc937f 100644 --- a/phosphorus.js +++ b/phosphorus.js @@ -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]++