[vhffs-dev] [PATCH] panel: fix tabulation navigation for ValidationTextBox dijits

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


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=\"&#9660; \" 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=\"&#935; \" 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=\"&#9660; \" 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=\"&#935; \" 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=\"&#935; \" 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=\"&#935; \" 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




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/