alerts::question -- escape key returns "no" response - Printable Version +- Hot Door CORE Forum (http://hotdoorcore.com/forum) +-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1) +--- Forum: Bugs (http://hotdoorcore.com/forum/forumdisplay.php?fid=5) +--- Thread: alerts::question -- escape key returns "no" response (/showthread.php?tid=134) |
alerts::question -- escape key returns "no" response - Rick Johnson - 04-30-2017 Code: hdi::core::alerts::Response userResp = hdi::core::alerts::question("yes-no-cancel", "yes", "no", "cancel"); With this dialog, pressing the esc key returns a "noButtonChosen" response rather than a cancel or dismissal. Is this the intended behavior? RE: alerts::question -- escape key returns "no" response - garrett - 05-01-2017 On Mac or Windows? I think that might be intended behavior to match old ADM code, but I'll have to double-check. RE: alerts::question -- escape key returns "no" response - Rick Johnson - 05-01-2017 It works that way on both Mac and Windows, at least in AI 21. It's not hard to work around, though: just put the cancel button in the middle, or else make a custom dialog. Which now reminds me that the escape key worked here under Windows (as a noButton response) but in another custom dialog the escape key only doubles as a Cancel click on the Mac. Interesting... |