Web Inspector: consume undo/redo shortcuts.
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Feb 2012 08:40:15 +0000 (08:40 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Feb 2012 08:40:15 +0000 (08:40 +0000)
https://bugs.webkit.org/show_bug.cgi?id=79016

Reviewed by Vsevolod Vlasov.

* inspector/front-end/ElementsPanel.js:
(WebInspector.ElementsPanel.prototype.handleShortcut):

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

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/ElementsPanel.js

index c09f0d3..cffb0ef 100644 (file)
@@ -1,3 +1,13 @@
+2012-02-20  pfeldman@chomium.org  <pavel.feldman@gmail.com>
+
+        Web Inspector: consume undo/redo shortcuts.
+        https://bugs.webkit.org/show_bug.cgi?id=79016
+
+        Reviewed by Vsevolod Vlasov.
+
+        * inspector/front-end/ElementsPanel.js:
+        (WebInspector.ElementsPanel.prototype.handleShortcut):
+
 2012-02-20  Philippe Normand  <pnormand@igalia.com>
 
         MediaPlayer: MediaPlayerPrivate registration cleanup
index 1512b75..5d73b28 100644 (file)
@@ -1051,11 +1051,13 @@ WebInspector.ElementsPanel.prototype = {
 
         if (WebInspector.KeyboardShortcut.eventHasCtrlOrMeta(event) && event.keyIdentifier === "U+005A") { // Z key
             WebInspector.domAgent.undo(this._updateSidebars.bind(this));
+            event.handled = true;
             return;
         }
 
         if (WebInspector.KeyboardShortcut.eventHasCtrlOrMeta(event) && event.keyIdentifier === "U+0059") { // Y key
             DOMAgent.redo(this._updateSidebars.bind(this));
+            event.handled = true;
             return;
         }