I tried to use the PUSHKEY "b";END inside @keyB and it loops forever.
The reason it loops forever is that the
PUSHKEY "B" causes the
@keyB event to be triggered again.
With filePro 5.6, there is a new command
DOKEY which would cause filePro to do the default action on the key, regardless of any
@key associated with it.
However, with 5.0, the only practical way of doing this is to use
@ENTSEL to handle the keystrokes. If you want filePro to handle it for you, use
PUSHKEY to push it back into the buffer and then
END. For those keystrokes you want to handle as special-case, you can handle it within the
@ENTSEL event.
For browse, simply
PUSHKEY "B" if you want filePro to go to browse mode, or skip the
PUSHKEY when you don't. Don't include any
@keyB event, and filePro will go into browse if you pushed the "B" keystroke.
I have seen other methods which include
CHAINing to a processing table that has no
@keyB event, so filePro will go into browse, and then
CHAINing back to the "real" processing when needed.