Jump to content

How can remove a 'Return' or 'Tab" entry "OnObjectKeystroke"?


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

Recommended Posts

I have an "OnObjectKeystroke" script trigger that is executing a script when the user types a (Tab, Return or Enter). At the end of the script it returns the user to the field. The problem that I am running into is the (Tab, Return, or Enter) is being entered into the field. How can I strip away those characters from the end of the string that the user is entering?

 

Here is my current script:

Set Variable [$f; Value:Get(ActiveLayoutObjectName)]
If [Let( [ n = Code( Get ( TriggerKeystroke ) )  ]; ( n=9 or n=10 or n= 13 )  )]
	Commit Records/Requests []
	Go to Object [Object Name: $f]
End If

 

Link to comment
Share on other sites

This topic is 2782 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.