9 Replies Latest reply on May 17, 2016 3:46 PM by Extensitech

    Escape key selects default option in custom dialogs

    Extensitech

      Summary

      Escape key selects default option in custom dialogs

      Product

      FileMaker Pro

      Version

      14

      Operating system version

      Windows (all)

      Description of the issue

      Escape key selects default option in custom dialogs.

      On windows, for any other application, "esc" means "cancel" not "proceed with whatever the first option is".

      There is simply no explanation that can translate "esc" into the latter intent for a Windows user.

      Steps to reproduce the problem

      Create a script:

      Show Custom Dialog, with buttons "one" and "two"
      Exit Script

      Debug the script. When shown the dialog, hit esc. Get ( LastMessageChoice ) returns 1. There is no way to discover that the user hit "esc", which on Windows means "cancel".

      Expected result

      Either:

      1) like on Mac, just don't do anything when esc is hit
      2) have get ( lasterror ) return a code to indicate that the user canceled
      3) have a function to determine that the user hit esc
      4) be able to designate a button to be "pressed" if the user hits esc

      and also, perhaps
      --ability to designate the button that should be highlighted by default

      Actual result

      Escape key selects default option in custom dialogs

      Exact text of any error message(s) that appear

      none

      Workaround

      Rework every dialog to make the first option "cancel" or its equivalent, rather than having the first option be the most likely (though not destructive) option, as is expected from all other software.