Vlad,
Making a blanket suggestion of using OKL is not a good idea. OKL is an intercommand interrupt, that is it will interrupt running code. No other user entry operations will do this, only the OKL. That is both good and bad. If you need something to interrupt code then OKL is the way to go. In all other situations OKL should be avoided as it will interrupt code that you did not want interrupted.
>Just use ON KEY LABEL - it overrides any default behaviour.
>
>>Thank you for your advice.
>>
>>
>>I try keypress with keypreview, but problem is I still cannot use F1,F2,F10...
>>How can I disable the default F1, F2 F10 behaviour ?
>>
>>TIA.