Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trapping Enter or Return keystroke without using OnObjectKeystroke?

Featured Replies

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. ]

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."

  • Author

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.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.