Use the same on.selector() method for keyboard events as click events... it's more resilient for Trees with custom !TreeNodes that have nested widgets, in which case the getEnclosingWidget() call might return one of the nested widgets rather than the !TreeNode.

This also switches to pure use of dojo/on, which means that the keypress event is no longer normalized to mozilla behavior, so had to handle those browser differences myself.

Fixes #15153, refs #14896 !strict.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@28310 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit 75159670d36ded6d1d7860ede79f734665478083)

Conflicts:
	Tree.js
"char" is a reserved word, so use a different variable name, refs #15153 !strict

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@28335 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit 1358890e2cfeb48e205f1ae76ce74ebe3315653f)
Fix problem where if you have a above-centered tooltip and display it, then display a above tooltip the connector is stil "centered".    Refs #15016 !strict.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@28192 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit 690663e69f678d9a6a705974841804d9ee1f3c58)
Fix calculations in Tooltip.orient() for when Tooltip is above/below rather than to the left or the right.   It's suspicious though why we need to measure the size of the connector at all, rather than just measuring the size of the whole tooltip.

Fixes #14122 !strict.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@26938 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit 23d9180b5f6152d9c909fa1b1462326ad490147c)
Remove code from [23065] to "Adjust width for tooltips that have a really long word or a nowrap setting".   It doesn't work, as shown by "test14" failure in Tooltip-placement.html.   It will make any tooltip with a sufficient amount of text expand to fill the width of the viewport, even if the tooltip content has neither large words nor a nowrap setting.   Refs #4282 !strict.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@26939 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit aec9bfd24f694faae2f3e4af8ac386b46265be2f)
remove unneeded and inert line of code, fixes #14418 !strict

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@27335 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit 077fe0d8ecb3b6bd85ee9a9ded36390d13f881b7)
Fix mis-positioning of tooltip when the mousover event's target is a child node rather than the Tooltip's anchor node (i.e. the node specified by connectId).  Fixes #11504 !strict

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@27525 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit 375606ccc02adc65793ba8f19ea1c4e34330ad61)

Conflicts:
	tests/test_Tooltip.html
The change in [22969] causes a slight problem on IE9 where tooltip text is unnecessarily split across two lines.   So, add a few pixels.

Also fixing unnecessary manual adjustment for connector width.   It's included in the the width of Tooltip.domNode.

Seems like all the browser sniff tests in this file could be changed to "feature tests", but I will leave that for a different checkin.

Fixes #15299 !strict.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@28532 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit 58c4d808ee78aeefbfafa63060fde34212fba1c5)
Support dropDownPosition: ["below-centered", "above-centered"] for parent of !TooltipDialog (typically !DropDownButton).  In the future though Tooltip and !TooltipDialog should be refactored to share more code.    Fixes #14851 !strict.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@27973 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit c31feddfe121eadc8566018d1d1403279d4e6673)

Conflicts:
	tests/test_TooltipDialog.html
Get after/before to work for Tooltip again, fixes #15016 on trunk !strict.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@28168 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit 9ea85daead3d3f6c3394f2b16bfe8a85ae22ba1d)

Conflicts:
	Tooltip.js
	themes/themeTester.html
Add selector parameter and getContent() method so that a single dijit.Tooltip can be applied to many rows in a table, or many nodes in a Tree, etc.

Fixes #14654 !strict.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@27677 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit 14ec1adaae0f910e50c25f65db3547761b1932dc)

Conflicts:
	Tooltip.js
	tests/robot/Tooltip_mouse.html
	tests/test_Tooltip.html
Refs #14229.  Add automated placeHolder test to prevent any future regression.

git-svn-id: http://svn.dojotoolkit.org/src/dijit/trunk@27372 560b804f-0ae3-0310-86f3-f6aa0a117693
(cherry picked from commit f5d183d39d80f40e894330e1cca9f1e6c291054c)

Conflicts:
	tests/form/_autoComplete.html