Topher Posted January 23, 2008 Posted January 23, 2008 Hello, I have a basic list view with a search box at the top. It functions very well but in terms of user friendliness I would love to make it so the return/enter key will perform the search script after writing in the search box. Is this possible? How do I activate scripts with keys. Topher
bcooney Posted January 23, 2008 Posted January 23, 2008 It sounds as if you have a global field at the top of the list layout that has a button next to it. The button runs a script that enters find mode and sets a field to the global and performs the find. It might even do several new requests in different fields looking to match on any one of the requests. It's a web-like find interface. So, I don't see a way to make this equal to the Enter key. If you change the find interface so that you're in Find and paused, then the Enter key would Continue the script and perform the Find.
comment Posted January 24, 2008 Posted January 24, 2008 (edited) It's possible with the Enter key (not Return). Just make the searchbox field itself a button that runs the script. Start the script by going to the searchbox field and pausing. ADDED: It's possible to make it work with the Return key too, but it would require an event-triggering plugin. Edited January 25, 2008 by Guest
Topher Posted January 25, 2008 Author Posted January 25, 2008 (edited) Thank you for your help. That does seem to be the solution, to make the field the button and have it pause indefinitely. I succeeded by doing that, however, with almost every possible combination of the behavior of the field I cannot get the return key to resume the script. What happens is that when I hit return it enters a carriage return (then I change the behavior), or it selects the entire contents of the field. It does, however, work to hit the enter key instead of the return key to continue the rest of the script. Do you have any ideas? I've tried added a script step so that after the pause it moves to the next field, or a hidden object but to no avail. Thanks again for your help. Edited January 25, 2008 by Guest
comment Posted January 25, 2008 Posted January 25, 2008 My previous post was misleading - I have mistakenly switched the two keys around. You cannot resume a script using the Return key when you are in a field, unless you are using a plugin and the field is formatted to go to next object upon hitting Return. See also: http://fmforums.com/forum/showtopic.php?tid/184430/post/239829/#239829
Recommended Posts
This topic is 6149 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 accountSign in
Already have an account? Sign in here.
Sign In Now