Changes the editing behavior in the Inspector to commit changes
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Aug 2008 16:47:22 +0000 (16:47 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Aug 2008 16:47:22 +0000 (16:47 +0000)
        when focus is lost, instead of reverting the changes.

        https://bugs.webkit.org/show_bug.cgi?id=20279

        Reviewed by Adam Roben.

        * page/inspector/inspector.js:
        (WebInspector.startEditing): Call editingCommitted in blurEventListener
        instead of editingCancelled.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@35562 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/page/inspector/inspector.js

index 5cde707..eaa88e4 100644 (file)
@@ -1,5 +1,18 @@
 2008-08-04  Timothy Hatcher  <timothy@apple.com>
 
+        Changes the editing behavior in the Inspector to commit changes
+        when focus is lost, instead of reverting the changes.
+
+        https://bugs.webkit.org/show_bug.cgi?id=20279
+
+        Reviewed by Adam Roben.
+
+        * page/inspector/inspector.js:
+        (WebInspector.startEditing): Call editingCommitted in blurEventListener
+        instead of editingCancelled.
+
+2008-08-04  Timothy Hatcher  <timothy@apple.com>
+
         Adds the ability to increment/decrement numbers in editable style
         properties with the arrow and page keys.
 
index 0907eb3..6534b02 100644 (file)
@@ -1142,7 +1142,7 @@ WebInspector.startEditing = function(element, committedCallback, cancelledCallba
         element.tabIndex = 0;
 
     function blurEventListener() {
-        editingCancelled.call(element);
+        editingCommitted.call(element);
     }
 
     function cleanUpAfterEditing() {