Changeset 153091 in webkit
- Timestamp:
- Jul 24, 2013, 11:28:40 AM (12 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r153087 r153091 1 2013-07-24 Antoine Quint <graouts@apple.com> 2 3 Web Inspector: control+clicking on a numeric token should not show the context menu 4 https://bugs.webkit.org/show_bug.cgi?id=119048 5 6 Reviewed by Timothy Hatcher. 7 8 Track "contextmenu" events when we're hovering a token containing a numeric value 9 and call preventDefault() in the event handler to ensure that the context menu does 10 not appear. 11 12 * UserInterface/CodeMirrorDragToAlterNumberController.js: 13 (WebInspector.CodeMirrorDragToAlterNumberController.prototype.handleEvent): 14 (WebInspector.CodeMirrorDragToAlterNumberController.prototype._setTracksMouseClickAndDrag): 15 1 16 2013-07-24 Antoine Quint <graouts@apple.com> 2 17 -
trunk/Source/WebInspectorUI/UserInterface/CodeMirrorDragToAlterNumberController.js
r153087 r153091 81 81 this._mouseWasReleased(event); 82 82 break; 83 case "contextmenu": 84 event.preventDefault(); 85 break; 83 86 } 84 87 }, … … 126 129 this._element.classList.add(WebInspector.CodeMirrorDragToAlterNumberController.StyleClassName); 127 130 window.addEventListener("mousedown", this, true); 131 window.addEventListener("contextmenu", this, true); 128 132 } else { 129 133 this._element.classList.remove(WebInspector.CodeMirrorDragToAlterNumberController.StyleClassName); 130 134 window.removeEventListener("mousedown", this, true); 135 window.removeEventListener("contextmenu", this, true); 131 136 this._setDragging(false); 132 137 }
Note:
See TracChangeset
for help on using the changeset viewer.