4 Replies Latest reply on Nov 19, 2015 5:10 AM by hsweet

    How to limit keys that interact with buttons?

    hsweet

      n my solution, when users enter data and press ‘Return’, another script checks entries for validity; if incorrect, the user must fix them before proceeding.  However, if ‘Enter’ (or ‘function’ + ’Return’) is pressed instead of either clicking the button or pressing ’Return’, error checking ceases and the main script continues regardless of errors!

       

      Likewise if a user presses ‘Command period’ instead of clicking the Cancel button (a typical shortcut), instead of continuing to clean up and return home, my Cancel script quits.

       

      I desperately need to set some buttons so only ‘Return’ works (and not ‘Enter’), and others so ‘Command period’ acts like a keypress of the Cancel button, or the keystroke is inactivated.

       

      Many computers will use the database, so keyboard remapping is out.

       

      Any help will be greatly appreciated!!!

       

      FileMaker Pro Advanced 13.0.v9 running on a Mac with Yosemite 10.10.5.