dialogs can have a button respond to Escape

I'm planning to make it so the Enter key will never cancel a yes/no dialog. To do this, I'm adding an Escape button to dialogs. So cancel/accept keyboard shortcuts will be predictable and intuitive. Dialogs that require extra confirmation will have a 'really confirm' LED.
This commit is contained in:
2025-03-27 13:26:36 -05:00
parent 8242c1e4bd
commit 8af5eb6c38
6 changed files with 50 additions and 19 deletions

View File

@@ -398,6 +398,7 @@
<xs:attribute name="debug" default="false" type="bool"/>
<xs:attribute name="fore" default="black"/>
<xs:attribute name="defbtn" type="xs:token"/>
<xs:attribute name="escbtn" type="xs:token"/>
</xs:complexType>
<xs:unique name="FieldTabOrder">
<xs:selector xpath="*" />
@@ -411,6 +412,10 @@
<xs:selector xpath="."/>
<xs:field xpath="@defbtn"/>
</xs:keyref>
<xs:keyref name="escapeButton" refer="uniqueID">
<xs:selector xpath="."/>
<xs:field xpath="@escbtn"/>
</xs:keyref>
<xs:keyref name="sliderLink" refer="uniqueID">
<xs:selector xpath="slider"/>
<xs:field xpath="@link"/>