Lock down the menu with a User menu, so the only way the user can get into Find 
mode is by script.

Force the user into the next script after the Enter Find Mode,  with a Pause 
indefinitely and follow that with Perform Script(<your button script>).

Put a Halt Script at the end of <your button script>.

When they're in Find mode, they enter their search criteria, they use the enter 
key and the indefinite pause ends thus continuing to the Perform Script until 
halting at Halt Script.

Or, while in find, they click on your button to go into <your button script> 
and the Halt script stops everything before the Perform script runs it again.

Chuck Dyer

FileMaker Pro Discussions <[email protected]> writes:
>Can the Enter key be disabled for an entire database?
>
>The situation is that I have created buttons to execute scripts that  
>take you to certain layouts.
>So, when someone executes a Find using my button, it executes the  
>find and then takes them to the correct layout for certain matching  
>criteria.
>However, if they hit the Enter key, it of course executes the find  
>request, but it does not take them to the correct layout.
>
>I want to make it so that they have to click the button in order to  
>execute the find request.
>
>Alternatively (and I guess ultimately better): is there a way to map  
>the enter key to specific scripts for specific layouts?
>
>Thanks,
>b0b

Reply via email to