Reviewed by Joseph Pecoraro.
Web Inspector: cycle through tag name / attributes / new attribute on Tab.
https://bugs.webkit.org/show_bug.cgi?id=38429
* inspector/front-end/ElementsTreeOutline.js:
(WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.moveToNextAttributeIfNeeded):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@74397
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2010-12-20 Pavel Feldman <pfeldman@chromium.org>
+
+ Reviewed by Joseph Pecoraro.
+
+ Web Inspector: cycle through tag name / attributes / new attribute on Tab.
+
+ https://bugs.webkit.org/show_bug.cgi?id=38429
+
+ * inspector/front-end/ElementsTreeOutline.js:
+ (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.moveToNextAttributeIfNeeded):
+
2010-12-20 Yuta Kitamura <yutak@chromium.org>
Reviewed by Alexey Proskuryakov.
if (!found) {
if (moveDirection === "backward" && attributes.length > 0)
moveToAttribute = attributes[attributes.length - 1].name;
- else if (moveDirection === "forward" && !/^\s*$/.test(newText))
- moveToNewAttribute = true;
+ else if (moveDirection === "forward") {
+ if (!/^\s*$/.test(newText))
+ moveToNewAttribute = true;
+ else
+ moveToTagName = true;
+ }
}
}
function moveToNextAttributeIfNeeded()
{
- if (moveDirection !== "forward")
+ if (moveDirection !== "forward") {
+ this._addNewAttribute();
return;
+ }
var attributes = this.representedObject.attributes;
if (attributes.length > 0)