In both cases, the call back doesn't do anything but print the value received by 'F1.SERIES'eWG'Value' or 'F.T'⎕WG'Value'
If I type 'asd' then move focus away from the text input, then return and enter 'fgh', I get these outputs:
EWC: null, null, null, asd, asd, asd
⎕WC: [empty string], a, as, asd, asdf, asdfg
It seems like the Value is not updated in EWC, until the text input loses focus. Similarly, it's worth noting that ⎕WC is the previous state at the very moment of the KeyPress, rather than the result of applying the change.
I faced an issue where I wanted to monitor the state of a text input. This is my eWC code:
This is similar code in ⎕WC:
In both cases, the call back doesn't do anything but print the value received by
'F1.SERIES'eWG'Value'
or'F.T'⎕WG'Value'
If I type 'asd' then move focus away from the text input, then return and enter 'fgh', I get these outputs:
It seems like the Value is not updated in EWC, until the text input loses focus. Similarly, it's worth noting that ⎕WC is the previous state at the very moment of the KeyPress, rather than the result of applying the change.