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

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

Recommended Posts

Posted

Hi all -

I've recently started replacing all the plug-in based script triggers in our solution with FileMaker script triggers.

I'm using the OnLayoutKeystroke trigger and I'm wondering if anyone knows a way to prevent the character that's associated with the keystroke from being entered into the current field.

I'm using a seldom used keystroke("`") to bring up a pop-up window and I don't want that character entered into the field.

Thanks for any ideas!

Posted

The way I understand it, an active field (and you mention a current field) will receive the keystroke before the layout. That is, it'll take the keystroke before your OnLayoutKeystroke trigger fires. You need an OnObjectKeystroke.

Which is, I believe, what comment said.

Posted

it'll take the keystroke before your OnLayoutKeystroke trigger fires.

Actually, it will take the keystroke and that's it. The OnLayoutKeystroke trigger will NOT fire.

Posted

Thanks all for taking the time to reply to my question. As always, I appreciate it.

TheTominator and Reinder your idea worked great. All I really had to do was read the FileMaker Help topic(the one Reinder included a link to) a little more carefully.

Exit Script[0] does the trick.

Thanks a bunch!

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