From 5b66a8419dd47f1dd3e7f544759a4ca9c7f24222 Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 31 May 2017 07:26:01 -0400 Subject: [PATCH] ignore "Delete" key in element picker mode --- src/js/scriptlets/element-picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/scriptlets/element-picker.js b/src/js/scriptlets/element-picker.js index 1b1de2954..8af6c4f6d 100644 --- a/src/js/scriptlets/element-picker.js +++ b/src/js/scriptlets/element-picker.js @@ -1344,7 +1344,7 @@ var svgListening = function(on) { var onKeyPressed = function(ev) { // Delete - if ( ev.key === 'Delete' ) { + if ( ev.key === 'Delete' && pickerBody.classList.contains('zap') ) { ev.stopPropagation(); ev.preventDefault(); zap();