Changeset 137292 in webkit
- Timestamp:
- Dec 11, 2012, 4:45:14 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r137291 r137292 1 2012-12-11 Pavel Feldman <pfeldman@chromium.org> 2 3 Web Inspector: follow up to r136974: do not process shortcuts while editing 4 https://bugs.webkit.org/show_bug.cgi?id=104440 5 6 Reviewed by Alexander Pavlov. 7 8 Currently, typing H while editing node results in corresponding shortcut processing. 9 10 * inspector/front-end/ElementsTreeOutline.js: 11 (WebInspector.ElementsTreeOutline): 12 (WebInspector.ElementsTreeOutline.prototype.handleShortcut): 13 (WebInspector.ElementsTreeElement.prototype.onenter): 14 (WebInspector.ElementsTreeElement.prototype._startEditingAttribute): 15 (WebInspector.ElementsTreeElement.prototype.dispose): 16 (WebInspector.ElementsTreeElement.prototype._startEditingAsHTML): 17 (WebInspector.ElementsTreeElement.prototype._editingCancelled): 18 1 19 2012-12-11 Ken Kania <kkania@chromium.org> 2 20 -
trunk/Source/WebCore/inspector/front-end/ElementsTreeOutline.js
r136974 r137292 58 58 this._selectDOMNode = null; 59 59 this._eventSupport = new WebInspector.Object(); 60 this._editing = false;61 60 62 61 this._visible = false; … … 167 166 }, 168 167 169 get editing()170 {171 return this._editing;172 },173 174 168 update: function() 175 169 { … … 560 554 } 561 555 562 if ( event.keyCode === WebInspector.KeyboardShortcut.Keys.H.code) {556 if (!treeElement._editing && event.keyCode === WebInspector.KeyboardShortcut.Keys.H.code) { 563 557 WebInspector.cssModel.toggleInlineVisibility(node.id); 564 558 return; … … 1089 1083 // On Enter or Return start editing the first attribute 1090 1084 // or create a new attribute on the selected element. 1091 if (this. treeOutline.editing)1085 if (this._editing) 1092 1086 return false; 1093 1087 … … 1320 1314 1321 1315 config.customFinishHandler = handleKeyDownEvents.bind(this); 1322 1316 1323 1317 this._editing = WebInspector.startEditing(attribute, config); 1324 1318 … … 1440 1434 function dispose() 1441 1435 { 1442 this._editing = false;1436 delete this._editing; 1443 1437 1444 1438 // Remove editor. … … 1466 1460 _attributeEditingCommitted: function(element, newText, oldText, attributeName, moveDirection) 1467 1461 { 1468 this._editing = false;1462 delete this._editing; 1469 1463 1470 1464 var treeOutline = this.treeOutline; … … 1529 1523 _tagNameEditingCommitted: function(element, newText, oldText, tagName, moveDirection) 1530 1524 { 1531 this._editing = false;1525 delete this._editing; 1532 1526 var self = this; 1533 1527 … … 1585 1579 _textNodeEditingCommitted: function(textNode, element, newText) 1586 1580 { 1587 this._editing = false;1581 delete this._editing; 1588 1582 1589 1583 function callback() … … 1600 1594 _editingCancelled: function(element, context) 1601 1595 { 1602 this._editing = false;1596 delete this._editing; 1603 1597 1604 1598 // Need to restore attributes structure.
Note:
See TracChangeset
for help on using the changeset viewer.