[vhffs-dev] [PATCH] panel: fix tabulation navigation for ValidationTextBox dijits |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
- To: vhffs-dev@xxxxxxxxx
- Subject: [vhffs-dev] [PATCH] panel: fix tabulation navigation for ValidationTextBox dijits
- From: Léo El Amri <leo@xxxxxxxxxxx>
- Date: Sun, 31 May 2020 17:54:48 +0200
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=superlel.me; s=defaultjuly2017; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:To:Subject:From; bh=A6QUp6Xzih6MSsLtoJdEmsuDYh3e3HvPyAkD98fMSPA=; b=Dm37yUtCEpI5qgZJcvXN/GMpBnyvW05TqGZI8B2eDLN9HfRDrpVY8PmNa/nYJf6oScidFPKIxW5ESoFVpWUYsyIBPpE2YY371MeuiY/9E8OBmXRGFupbFFCcdotlJwMNOtc5imf8rB1LrUIzvigcPoOHVrW1feVZkYWFAYyf6g9o5/2tpTojf06xG/o1cL/zkxGT6dI8zla+SsCKZ7wr73OBdyCKOPrtribB1WBc0X0l07K64lN2jjQzO09KP1QwWX5ky4dPDYDln72d+VPDC7RipC/O+lMt5o8dN1NcVTBhD/zGIlkcmfcT2FHkxFOQ9/FffOksAkFDQXoegTf+8A==;
Prior to this, ValidationTextBox validation icons were focusable through
tabulation navigation.
---
vhffs-panel/js/dijit/form/ComboBox.js | 2 +-
vhffs-panel/js/dijit/form/ValidationTextBox.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/vhffs-panel/js/dijit/form/ComboBox.js
b/vhffs-panel/js/dijit/form/ComboBox.js
index 5aef1454..27429213 100644
--- a/vhffs-panel/js/dijit/form/ComboBox.js
+++ b/vhffs-panel/js/dijit/form/ComboBox.js
@@ -117,7 +117,7 @@ dojo.declare(
// Defaults to true.
hasDownArrow: true,
- templateString: dojo.cache("dijit.form", "templates/ComboBox.html",
"<div class=\"dijit dijitReset dijitInlineTable
dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachPoint=\"comboNode\"
waiRole=\"combobox\"\n\t><div class='dijitReset dijitRight
dijitButtonNode dijitArrowButton dijitDownArrowButton
dijitArrowButtonContainer'\n\t\tdojoAttachPoint=\"downArrowNode\"
waiRole=\"presentation\"\n\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown\"\n\t\t><input
class=\"dijitReset dijitInputField dijitArrowButtonInner\"
value=\"▼ \" type=\"text\" tabIndex=\"-1\" readOnly
waiRole=\"presentation\"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div
class='dijitReset dijitValidationContainer'\n\t\t><input
class=\"dijitReset dijitInputField dijitValidationIcon
dijitValidationInner\" value=\"Χ \" type=\"text\" tabIndex=\"-1\"
readOnly waiRole=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset
dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset
dijitInputInner' ${!nameAttrSetting} type=\"text\"
autocomplete=\"off\"\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress,compositionend\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\"
waiRole=\"textbox\"
waiState=\"haspopup-true,autocomplete-list\"\n\t/></div\n></div>\n"),
+ templateString: dojo.cache("dijit.form", "templates/ComboBox.html",
"<div class=\"dijit dijitReset dijitInlineTable
dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachPoint=\"comboNode\"
waiRole=\"combobox\"\n\t><div class='dijitReset dijitRight
dijitButtonNode dijitArrowButton dijitDownArrowButton
dijitArrowButtonContainer'\n\t\tdojoAttachPoint=\"downArrowNode\"
waiRole=\"presentation\"\n\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown\"\n\t\t><input
class=\"dijitReset dijitInputField dijitArrowButtonInner\"
value=\"▼ \" type=\"text\" tabIndex=\"-1\" readOnly
waiRole=\"presentation\"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div
class='dijitReset dijitValidationContainer'\n\t\t><input
class=\"dijitReset dijitInputField dijitValidationIcon
dijitValidationInner\" value=\"Χ \" type=\"text\"
disabled=\"disabled\" readOnly
waiRole=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset
dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset
dijitInputInner' ${!nameAttrSetting} type=\"text\"
autocomplete=\"off\"\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress,compositionend\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\"
waiRole=\"textbox\"
waiState=\"haspopup-true,autocomplete-list\"\n\t/></div\n></div>\n"),
baseClass: "dijitTextBox dijitComboBox",
diff --git a/vhffs-panel/js/dijit/form/ValidationTextBox.js
b/vhffs-panel/js/dijit/form/ValidationTextBox.js
index 8f97bcff..d559da7b 100644
--- a/vhffs-panel/js/dijit/form/ValidationTextBox.js
+++ b/vhffs-panel/js/dijit/form/ValidationTextBox.js
@@ -36,7 +36,7 @@ dojo.declare(
// tags:
// protected
- templateString: dojo.cache("dijit.form",
"templates/ValidationTextBox.html", "<div class=\"dijit dijitReset
dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"
waiRole=\"presentation\"\n\t><div class=\"dijitReset
dijitValidationContainer\"\n\t\t><input class=\"dijitReset
dijitInputField dijitValidationIcon dijitValidationInner\"
value=\"Χ \" type=\"text\" tabIndex=\"-1\" readOnly=\"readonly\"
waiRole=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset
dijitInputField dijitInputContainer\"\n\t\t><input class=\"dijitReset
dijitInputInner\" dojoAttachPoint=\"textbox,focusNode\"
autocomplete=\"off\"\n\t\t\t${!nameAttrSetting}
type=\"${type}\"\n\t/></div\n></div>\n"),
+ templateString: dojo.cache("dijit.form",
"templates/ValidationTextBox.html", "<div class=\"dijit dijitReset
dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"
waiRole=\"presentation\"\n\t><div class=\"dijitReset
dijitValidationContainer\"\n\t\t><input class=\"dijitReset
dijitInputField dijitValidationIcon dijitValidationInner\"
value=\"Χ \" type=\"text\" disabled=\"disabled\"
readOnly=\"readonly\" waiRole=\"presentation\"\n\t/></div\n\t><div
class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input
class=\"dijitReset dijitInputInner\"
dojoAttachPoint=\"textbox,focusNode\"
autocomplete=\"off\"\n\t\t\t${!nameAttrSetting}
type=\"${type}\"\n\t/></div\n></div>\n"),
baseClass: "dijitTextBox dijitValidationTextBox",
// required: Boolean
--
2.26.2