https://gitlab.synchro.net/main/sbbs/-/commit/35f5b81efd0664ab66a36bce
Modified Files:
docs/v322_new.md exec/uselect.js src/sbbs3/getstr.cpp js_console.cpp sbbs.h sbbsdefs.h
Log Message:
getnum: optionally return navigation keys; use it in uselect.js
sbbs_t::getnum() takes an optional navkey pointer. When non-NULL, an up,
down, home, end, page-up or page-down key hit before any digits is stored
there and GETNUM_NAVKEY (-2) is returned. Existing callers are unaffected.
console.getnum() exposes this as a third (navkeys) boolean argument: when
true, a navigation key is returned as a one-character string matching the
KEY_* constants in key_defs.js.
uselect.js now uses console.getnum(..., true) instead of its own copy of
the number-input logic, so it gets the native quit-key, Ctrl-C and
type-ahead handling, and requires v3.22.
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net