Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4699 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

In FM11, Is there a way to determine if a user has hit the Return or Enter key in a field (but NOT the Tab key) so that I can trigger a script, without using OnObjectKeystroke trigger?

[ The reason I want to avoid OnObjectKeystroke is that it makes debugging very difficult when using the debugger in FM11 Advanced. ]

Posted

Can you elaborate on OnObjectKeystroke vs debugging, not sure what the problem is.

Also, if you're just trying to prevent Return or Enter, one option is to enable those checkboxes in the Inspector under "Go to next object using."

Posted

If you have the debug window open (which I usually do when I'm writing & testing scripts) and there's an OnObjectKeystroke trigger, then the debugger will jump forward every.time.you.hit.a.key. Can be frustrating.

I found a workaround which is to keep the debug window closed, but enable "Debugging Controls/Pause on error" and then stick an intentional error inside the script that I want to debug. This way, I can type as fast as I want, but the debug window only opens when I want it to.

This topic is 4699 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.