Forum Discussion
Preventing specific keystrokes
I can tell you why it is doing what it is doing.
If you will enter a decimal point on line 5, it will be cleared. If you enter $ or ( on lines 2 - 7, they will not. The reason is that when one of those keys is pressed there is a list of 7 triggers, and all of them are executed, no matter where the cursor was when the key is pressed. That means that all the layers are shown, but as fast as the processor can run through the list of triggers. It's way too fast for the monitor to respond, much less for us to be able to see them. In the end, you see the last layer in the list. Since all the layers are identical, you can't tell which one you are seeing.
Put some sort of identifying mark on one of the error layers, and you can see it happening. For $ and (, Line number 1 is at the bottom, which is why testing line 1 gives the appearance of success, and the others don't. For the decimal, there are two lists, one for the period, and one for the number pad decimal. One list has 5 at the bottom, and the other 6. So those two lines show the correct layer for their respective entries.
The bad news is that I have no idea how to make it work. My first impulse would be to set up a condition on each trigger to show that layer only if it is the last location where data is entered. It would work if you could find which text entry box has the focus, but I haven't been able to find that. Some one else may have an idea.
- ChristyOtis3 years agoCommunity Member
Thank you Walt! You pointed me in the right direction and I was able to make it work. The triggers I had were saying to show the error layer when pressing the period/decimal, paren or dollar sign, after clicking on the slide. I changed all of these triggers so that the error will show after clicking on their associated text entry fields.