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

@@ -75,8 +75,10 @@ such, this attribute should be omitted for most dialogs.
to `true`, the XSL stylesheet will draw the bounding rects of LEDs and
other debug information.
* `fore` - The default text colour. Generally this shouldn't be needed.
* `defbtn` - The ID (`name` attribute) of the default button. This is an
IDREF, so it must exist in the dialog.
* `defbtn` - The ID (`name` attribute) of button triggered by Enter/Return.
This is an IDREF, so it must exist in the dialog.
* `escbtn` - The ID (`name` attribute) of button triggered by Escape.
This is an IDREF, so it must exist in the dialog.
The `<text>` tag
----------------