Bug 1342297 - Fix inplace-editor autocomplete. r=jdescottes
MozReview-Commit-ID: KpimIPfqz4o
--- a/devtools/client/shared/inplace-editor.js
+++ b/devtools/client/shared/inplace-editor.js
@@ -1150,27 +1150,31 @@ InplaceEditor.prototype = {
// Close the popup if open
if (this.popup && this.popup.isOpen) {
this._hideAutocompletePopup();
}
prevent = true;
this.cancelled = true;
this._apply();
this._clear();
- event.stopPropagation();
} else if (isKeyIn(key, "SPACE")) {
// No need for leading spaces here. This is particularly
// noticable when adding a property: it's very natural to type
// <name>: (which advances to the next property) then spacebar.
prevent = !input.value;
}
if (prevent) {
event.preventDefault();
}
+
+ // We don't want to propagate this keypress event to the parent
+ // frame (toolbox), since it seems to break the text selection feature
+ // of autocomplete.
+ event.stopPropagation();
},
_onContextMenu: function (event) {
if (this.contextMenu) {
this.contextMenu(event);
}
},