About   |   Getting Started   |   Downloads   |   Documentation   |   Forum


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
alerts::question -- escape key returns "no" response
04-30-2017, 10:36 AM
Post: #1
alerts::question -- escape key returns "no" response
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?
Find all posts by this user
Quote this message in a reply
05-01-2017, 04:17 PM
Post: #2
RE: alerts::question -- escape key returns "no" response
On Mac or Windows? I think that might be intended behavior to match old ADM code, but I'll have to double-check.
Find all posts by this user
Quote this message in a reply
05-01-2017, 04:57 PM
Post: #3
RE: alerts::question -- escape key returns "no" response
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...
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)