Index: Source/devtools/front_end/DOMStorageItemsView.js |
diff --git a/Source/devtools/front_end/DOMStorageItemsView.js b/Source/devtools/front_end/DOMStorageItemsView.js |
index e9f652fe48d2ef6791bf5e4ef6b7c3c98847334a..5d94705b053e1331002de02789d492b814eaae3b 100644 |
--- a/Source/devtools/front_end/DOMStorageItemsView.js |
+++ b/Source/devtools/front_end/DOMStorageItemsView.js |
@@ -68,6 +68,26 @@ WebInspector.DOMStorageItemsView.prototype = { |
}, |
/** |
+ * @param {KeyboardEvent} event |
+ */ |
+ handleShortcut: function(event) |
+ { |
+ if (WebInspector.KeyboardShortcut.eventHasCtrlOrMeta(event) && !event.shiftKey && event.keyIdentifier === "U+005A") { // Z key |
+ this.domStorage.undo(); |
+ event.handled = true; |
+ return; |
+ } |
+ |
+ var isRedoKey = WebInspector.isMac() ? event.metaKey && event.shiftKey && event.keyIdentifier === "U+005A" : // Z key |
+ event.ctrlKey && event.keyIdentifier === "U+0059"; // Y key |
+ if (isRedoKey) { |
+ this.domStorage.redo(); |
+ event.handled = true; |
+ return; |
+ } |
+ }, |
+ |
+ /** |
* @param {WebInspector.Event} event |
*/ |
_domStorageItemsCleared: function(event) |