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
+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
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;
}