Quantcast
Channel: FileMaker Forum > Report an issue
Viewing all articles
Browse latest Browse all 3510

Escape key selects default option in custom dialogs (1 Comment)

$
0
0

Issue report by Chris Cain

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.

Viewing all articles
Browse latest Browse all 3510

Trending Articles