Opened 12 years ago

Closed 12 years ago

#4262 closed defect (fixed)

TitlePane method _onTitleKey results in an error

Reported by: guest Owned by: Becky Gibson
Priority: high Milestone: 1.0
Component: Accessibility Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

In the method _onTitleKey in dijit/TitlePane.js there is a call to an undefined method _onTitleClick

	_onTitleKey: function(/*Event*/ e){
		// summary: callback when user hits a key
		if(e.keyCode == dojo.keys.ENTER || e.charCode == dojo.keys.SPACE){
			this._onTitleClick();
		}
		else if(e.keyCode == dojo.keys.DOWN_ARROW){
			if(this.open){
				this.containerNode.focus();
				e.preventDefault();
			}
	 	}
	},

I think that "this._onTitleClick();" should be replaced with "this.toggle();" for proper behavior. Tested in FF 1.5 and it works well.

Change History (2)

comment:1 Changed 12 years ago by bill

Component: GeneralAccessibility
Milestone: 1.0
Owner: changed from anonymous to Becky Gibson

comment:2 Changed 12 years ago by Becky Gibson

Resolution: fixed
Status: newclosed

(In [10348]) fixes #4262. updated reference to this._onTitleClick to correctly refer to this.toggle(). This was a regression from rev 9847 when function was renamed.

Note: See TracTickets for help on using tickets.