From 3919585db48c3e3350d03dc53cc7895cf949937c Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Wed, 15 Jul 2020 09:05:54 +0200 Subject: [PATCH] Clear selection on Escape --- src/JSONEditor.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/JSONEditor.svelte b/src/JSONEditor.svelte index 419c9b4..d1f2e97 100644 --- a/src/JSONEditor.svelte +++ b/src/JSONEditor.svelte @@ -424,6 +424,10 @@ event.preventDefault() handlePaste() } + if (combo === 'Escape') { + event.preventDefault() + selection = null + } } if (combo === 'Ctrl+F' || combo === 'Command+F') {