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:
@@ -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"/>
|
||||
|
Reference in New Issue
Block a user