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

Capture the Enter Key

Featured Replies

Is there any way to "capture" the Enter key, to do the following:

Signal the end of input (like the Tab key)

Script another action depending on the field

In other words, I would like to make the Enter key into a keyboard command that will then run a script depending on what field the cursor is in when the Enter key is pressed?

If you are already in a script, the pause step will wait for the enter key and then continue. So, you could structure a script to go to a field then pause. Then, when the user hits enter, it could perform another action based on the value of Status(CurrentFieldName).

Since you said you want to run a script "depending" on what field the cursor is in when the inter key is pressed, you will also want to put a series of "If's" after the pause to check which field is the current field.

  • Author

OK.. What am I doing wrong? I've tried using Pause in a script, but it does not recognize the Enter key as a user function to continue the script. All it does on Enter (in a text field) is a line break. That happens even if I set a character limit in the field definition.

I've tried using a timed pause, with a loop, ending the loop on a patterncount when it detects the Enter symbol. That sort of works, but it also cuts off user input depending on how long it takes the user to enter data.

I'm not an Access programmer, but I know that you can assign Events to a field and also define how the keys work; so that you can make the Enter key act like the Tab key, and also set certain events to happoen depending on what is entered in the field. That's what I am trying to accomplish, but it doesn't seem viable in FM..??

RE: All it does on Enter (in a text field) is a line break.

There are 2 keys. The rightmost next to numbers is Enter, the right -- Return -- between letters and numbers letters is doing line break.

For further Events requirement you may research more Plugins for FM.

HTH

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.