From 27ffb10ce68225af3ef8316dd173c1bbb90cac48 Mon Sep 17 00:00:00 2001 From: dweller Date: Wed, 6 Mar 2024 00:29:17 +0200 Subject: take into account the slide action of query options in lmmtfy script --- js/lmmtfy.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js') diff --git a/js/lmmtfy.js b/js/lmmtfy.js index 2c5a642..0f9951d 100644 --- a/js/lmmtfy.js +++ b/js/lmmtfy.js @@ -10,6 +10,7 @@ const dom_query = document.getElementById("query"); const dom_sect = document.getElementById("sect"); const dom_arch = document.getElementById("arch"); const dom_man = document.getElementById("man"); +const dom_opts = document.getElementById("query_opts_toggle"); const query = dom_query.value; const sect = dom_sect.value; @@ -29,6 +30,9 @@ let actions = [250, () => { dom_query.focus(); }, 1], [150, () => { dom_query.value += query[j++]; }, query.length], + [100, () => { dom_opts.focus(); }, 1], + [100, () => { dom_opts.click(); }, 1], + [100, () => { dom_sect.focus(); }, 1], [100, () => { dom_sect.value = sect; }, 1], [100, () => { fix_width(dom_sect); }, 1], -- cgit v1.2.3