From 0df9e5cd44d25934c3324e54146c99f5db7360bf Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 26 Oct 2019 16:46:03 -0600 Subject: [PATCH] Update on button click --- papers/runit-as-init.md | 2 +- toys/grepdict/grepdict.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/papers/runit-as-init.md b/papers/runit-as-init.md index 59db4d2..8574340 100644 --- a/papers/runit-as-init.md +++ b/papers/runit-as-init.md @@ -64,7 +64,7 @@ Making X11 work X11 at the time wanted `udev`, so I just ran that from init. But, a few months later, -X was able to start with `udev`, +X was able to start without `udev`, so I took it out and figured out the keyboard and mouse problem. It had something to do with `evdev`; diff --git a/toys/grepdict/grepdict.js b/toys/grepdict/grepdict.js index 265089c..495cdb2 100644 --- a/toys/grepdict/grepdict.js +++ b/toys/grepdict/grepdict.js @@ -8,6 +8,7 @@ function addWords(wl) { re.value = "" re.disabled = false re.focus() + re.dispatchEvent(new Event("input")) } function regexInput(e) { @@ -29,7 +30,6 @@ function regexInput(e) { li.textContent = "…" break } - } } } @@ -42,6 +42,7 @@ function anchorToggle(e) { } re.value = val re.focus() + re.dispatchEvent(new Event("input")) } function init(e) {