From ca985b5303231ad3fef489a318c3ce99e42b1727 Mon Sep 17 00:00:00 2001 From: Paul Rouget Date: Fri, 20 Jan 2012 16:36:35 +0100 Subject: [PATCH] Bug 719783 - In the Rule View, pressing Escape close the whole Inspector. r=dcamp --- browser/devtools/styleinspector/CssRuleView.jsm | 1 + 1 file changed, 1 insertion(+) diff --git a/browser/devtools/styleinspector/CssRuleView.jsm b/browser/devtools/styleinspector/CssRuleView.jsm index 50d28596b68..c12a160e216 100644 --- a/browser/devtools/styleinspector/CssRuleView.jsm +++ b/browser/devtools/styleinspector/CssRuleView.jsm @@ -1310,6 +1310,7 @@ InplaceEditor.prototype = { prevent = true; this.cancelled = true; this.input.blur(); + aEvent.stopPropagation(); } else if (aEvent.keyCode === Ci.nsIDOMKeyEvent.DOM_VK_SPACE) { // No need for leading spaces here. This is particularly // noticable when adding a property: it's very natural to type