commit 19d45eb1425bddcb52a86746fc7b5bfd58361b73 parent 45f8703305fe0f39b8a879c2cfd15416b08da386 Author: Damian Myrda <damian@prime8.dev> Date: Fri, 23 Oct 2026 07:36:57 +0000 web shell: digits type into a focused prompt Diffstat:
| M | internal/web/scripts/modules/shell.js | | | 8 | +++----- |
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/internal/web/scripts/modules/shell.js b/internal/web/scripts/modules/shell.js @@ -688,11 +688,9 @@ export function initShell() { } } - // An empty prompt doesn't own the page shortcuts: digits and tab give - // focus back and switch tabs, so the terminal never eats navigation. - // Once something is typed they're plain input and completion again. - if (input.value === "" && !busy && !e.ctrlKey && !e.metaKey && !e.altKey && - (/^[1-9]$/.test(e.key) || e.key === "Tab")) { + // A focused prompt types digits like any terminal. Tab on an empty prompt + // has nothing to complete, so it gives focus back and cycles tabs. + if (input.value === "" && !busy && !e.ctrlKey && !e.metaKey && !e.altKey && e.key === "Tab") { e.preventDefault(); e.stopPropagation(); input.blur();