From bf0c211202fd4c52a6ed9cfbe8511e2986377e2d Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sun, 12 May 2024 19:12:59 -0700 Subject: [PATCH] Add keyboard shortcut "/" to jump to textarea --- index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.html b/index.html index adab3dd..7c1137f 100644 --- a/index.html +++ b/index.html @@ -444,6 +444,12 @@ gzipBase64ToText(location.hash.substring(1)).then(text => textarea.value = text); textarea.dispatchEvent(new Event('input')); } + + addEventListener('keyup', e => { + if (e.key === '/') { + textarea.focus(); + } + }); -- 2.47.3