Jump to content

Managing the Enter Key


brian rich
 Share

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

Recommended Posts

I've got a layout which consists of a set of buttons. Each button will create a new record in the table and switch to a layout appropriate for that button. The script that opens the layout turns user abort off, hides and locks the status area, then executes a pause script indefinitely step waiting for the user to do something.

As some of the database users are keen keyboard-only users, I have set the tab order up so that the user can tab through the buttons and hit the return key to execute the button script, or alternatively click the button to run the script. On entering the layout, I set focus on the first button with a go to object step. The user can then tab to the button he wants, or click on the button he wants

The problem is that some users treat the Enter Key as though it was the return key; if they do this, the process fails as the Enter Key removes the focus from the current active button so I can't capture which button was 'Returned'. I need a way to ensure that whether the user hits Enter, hits return or clicks a button, I can capture which button was acted on correctly.

Any ideas would be welcomed

Thanks

Brian

Link to comment
Share on other sites

This topic is 4396 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
 Share

×
×
  • Create New...

Important Information

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