Keypad Entry Problem

 From:  bemfarmer
7012.1 
Hi Michael

November 3, 2014

I am having trouble with keypad entry, on a home-made script.

Recently, Max Smirnov posted the Gear script, which works very well.
It uses a 30 ms timing loop, with most of the code in the .htm file.
All of the keypad numeric entry is with POSITIVE integers.
There is no minus key, nor decimal key.
Every time a number key is pressed, the gear is recreated.

I redid the elastica script, using the Gear type of code.
(The script uses numbers less than positive 1.0)
The slider works very well, and the OnClick works well also.
There is a problem with the numeric keypad entry, when using negative numbers. There is a minus key, and a decimal key, which cause problems.

The first time the keypad is used, it works well. The minus key works properly.

The second time the keypad is used, positive numbers enter properly, but
minus entry or decimal entry caused the keypad to freeze up.
Second time entry examples:
0 works
0.5 works
.5 fails
0.5- works
0.65223 works
0.65223- works
.65223 Fails
- anynumber Fails
1.2- works
Miss keys like 0.5. Fail
Alternating between 1 keypad entry, and slider or onclick, works.

So the script is grabbing each key from the keypad, as it is pressed.
For example . or - which are not numbers.

Is there some way to let the keypad finish up, before the keys are grabbed?
Or is this scripting method not appropriate?

I'll likely redo the script with earlier .htm scripting methods.
Using mirror and rotate, the script creates the entire curve (or two), not a 1/4 or 1/2

Thank you
- Brian