]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Make sure Escape in a message box always does something.
authorSimon Tatham <anakin@pobox.com>
Sat, 26 Sep 2015 12:57:12 +0000 (13:57 +0100)
committerSimon Tatham <anakin@pobox.com>
Sat, 26 Sep 2015 12:57:12 +0000 (13:57 +0100)
commit612534a4b42aacdc35a9b786915156f558ef359a
tree2ce78050a71750fee14d4e875dc13b503a29f357
parent291cbfc369851b4efb515c44338c9d4aabe9c3e3
Make sure Escape in a message box always does something.

The askalg() dialog, and several one-button things like the licence
box, have no button labelled 'cancel'. But in all cases we do want
Escape to terminate the box, with as negative an answer as is
available. So now we assign the 'iscancel' flag to any button whose
numeric value is the smallest of the ones given as input to
messagebox().

(In a one-button box, this leads to isdefault and iscancel _both_
being set for that button. That's fine; it works.)
unix/gtkdlg.c