January 5, 201214 yr In FM11, Is there a way to determine if a user has hit the Return or Enter key in a field (but NOT the Tab key) so that I can trigger a script, without using OnObjectKeystroke trigger? [ The reason I want to avoid OnObjectKeystroke is that it makes debugging very difficult when using the debugger in FM11 Advanced. ]
January 6, 201214 yr Can you elaborate on OnObjectKeystroke vs debugging, not sure what the problem is. Also, if you're just trying to prevent Return or Enter, one option is to enable those checkboxes in the Inspector under "Go to next object using."
January 12, 201213 yr Author If you have the debug window open (which I usually do when I'm writing & testing scripts) and there's an OnObjectKeystroke trigger, then the debugger will jump forward every.time.you.hit.a.key. Can be frustrating. I found a workaround which is to keep the debug window closed, but enable "Debugging Controls/Pause on error" and then stick an intentional error inside the script that I want to debug. This way, I can type as fast as I want, but the debug window only opens when I want it to.
Create an account or sign in to comment