picolisp

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/picolisp.git/
Log | Files | Refs | README | LICENSE

commit be9cf9f94aab687f91fdd14a76e2be6c616b87c0
parent dc80fec030164d19f35d0889e6995825dd20f102
Author: Alexander Burger <abu@software-lab.de>
Date:   Tue, 29 Nov 2011 12:28:30 +0100

Slight change in hint behavior for +Coy fields
Diffstat:
Mlib/form.js | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/lib/form.js b/lib/form.js @@ -1,4 +1,4 @@ -/* 28nov11abu +/* 29nov11abu * (c) Software Lab. Alexander Burger */ @@ -358,9 +358,13 @@ function hintKey(field, event, tok, coy) { Beg = 0; End = field.value.length; } - if ((coy || Beg == End) && event.keyCode != 45) { // INS - Hint.style.visibility = "hidden"; - return false; + if (event.keyCode != 45) { // INS + if (Beg == End) { + Hint.style.visibility = "hidden"; + return false; + } + if (coy && Hint.style.visibility == "hidden") + return false; } try { HintReq.open("POST",