exitField firing multiple times
Posted: Thu Jun 07, 2018 11:57 pm
I create a new stack containing one field "AAA"
- LockText is false
- FocusWithKeyboard is true
- Script is shown below:
on closeField
Answer "CloseField" & the name of me
end closeField
on exitField
Answer "ExitField" & the name of me
end exitField
1) If I click on field AAA, change its contents, and then click outside it I trigger the answer CloseField dialogue
2) If I click on field AAA, don't change its contents, and then click outside it I trigger the answer ExitField dialogue
All good so far.
3) If I then click again on the card outside of field AAA, the answer ExitField dialogue appears again. ExitField keeps firing everytime that I click outside of field AAA
4) If I click on field AAA, don't change its contents, and then click on another field with LockText = True and FocusWithKeyboard = true; I trigger TWO answer ExitField dialogues from field "AAA"
5) If I click on field AAA, change its contents, and then click on another field with LockText = True and FocusWithKeyboard = true; I trigger BOTH a CloseField and an ExitField from field "AAA"
Is there an easy way to damped the enthusiasm of exitField and get it (or CloseField) to fire only once for each openField? I've tried "Focus on nothing", but that didn't do it. Even after "Focus on nothing", exitFields keep firing for field AAA (without AAA being re-opened). I realise that I could have openField set the LetExitFieldFire of this card to true, then have closeField and exitField set the LetExitFieldFire of this card to false, and add an "if LetExitFieldFire" statement within each exitField handler; but I just wondering if there is a simple button that I can tick to solve this.
Thanks in advance
Kim
- LockText is false
- FocusWithKeyboard is true
- Script is shown below:
on closeField
Answer "CloseField" & the name of me
end closeField
on exitField
Answer "ExitField" & the name of me
end exitField
1) If I click on field AAA, change its contents, and then click outside it I trigger the answer CloseField dialogue
2) If I click on field AAA, don't change its contents, and then click outside it I trigger the answer ExitField dialogue
All good so far.
3) If I then click again on the card outside of field AAA, the answer ExitField dialogue appears again. ExitField keeps firing everytime that I click outside of field AAA
4) If I click on field AAA, don't change its contents, and then click on another field with LockText = True and FocusWithKeyboard = true; I trigger TWO answer ExitField dialogues from field "AAA"
5) If I click on field AAA, change its contents, and then click on another field with LockText = True and FocusWithKeyboard = true; I trigger BOTH a CloseField and an ExitField from field "AAA"
Is there an easy way to damped the enthusiasm of exitField and get it (or CloseField) to fire only once for each openField? I've tried "Focus on nothing", but that didn't do it. Even after "Focus on nothing", exitFields keep firing for field AAA (without AAA being re-opened). I realise that I could have openField set the LetExitFieldFire of this card to true, then have closeField and exitField set the LetExitFieldFire of this card to false, and add an "if LetExitFieldFire" statement within each exitField handler; but I just wondering if there is a simple button that I can tick to solve this.
Thanks in advance
Kim