blanchap
20th August 2009, 17:16
Hi all,

i'm trying to validate the esc key in a session so that the user will be redirected to another field when pressed.

so in my script i have:

field.funct:
on.input:
if in.ret = 27 then
to.field(1)
endif

but when we do esc on field funct, it goes to the choice field.
I tried it also in a after.input but does the same thing.
What am i missing?

Regards.

PB.

george7a
20th August 2009, 17:50
Hi,

Check this link:
http://www.baanboard.com/baanboard/showthread.php?t=7243

- George

Hitesh Shah
20th August 2009, 17:58
Escape is used by standard program to trigger recover.set . So it may not be available in field section . U may write ur code recover.set before.choice and that may help u .

Similarly user will not be able to trap arrow keys , tab keys , zoom etc .