ignore "Delete" key in element picker mode

This commit is contained in:
gorhill 2017-05-31 07:26:01 -04:00
parent c7a9befdab
commit 5b66a8419d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -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();