Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1931)

Unified Diff: Source/devtools/front_end/elements/module.json

Issue 688513004: DevTools: Migrate elements panel undo/redo shortcuts to declarative actions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/elements/module.json
diff --git a/Source/devtools/front_end/elements/module.json b/Source/devtools/front_end/elements/module.json
index 683a3178c06ff99d86054e082818e989923a213f..235b1e46116b8a4857385afa933599cfd2804158 100644
--- a/Source/devtools/front_end/elements/module.json
+++ b/Source/devtools/front_end/elements/module.json
@@ -13,6 +13,38 @@
"className": "WebInspector.ElementsPanel.ContextMenuProvider"
},
{
+ "type": "@WebInspector.ActionDelegate",
+ "actionId": "elements.undo",
+ "className": "WebInspector.ElementsPanel.UndoActionDelegate",
+ "contextTypes": ["WebInspector.ElementsPanel"],
+ "bindings": [
+ {
+ "platform": "windows,linux",
+ "shortcut": "Ctrl+Z"
+ },
+ {
+ "platform": "mac",
+ "shortcut": "Meta+Z"
+ }
+ ]
+ },
+ {
+ "type": "@WebInspector.ActionDelegate",
+ "actionId": "elements.redo",
+ "className": "WebInspector.ElementsPanel.RedoActionDelegate",
+ "contextTypes": ["WebInspector.ElementsPanel"],
+ "bindings": [
+ {
+ "platform": "windows,linux",
+ "shortcut": "Ctrl+Y"
+ },
+ {
+ "platform": "mac",
+ "shortcut": "Meta+Shift+Z"
+ }
+ ]
+ },
+ {
"type": "@WebInspector.Renderer",
"contextTypes": ["WebInspector.DOMNode", "WebInspector.RemoteObject"],
"className": "WebInspector.ElementsTreeOutline.Renderer"

Powered by Google App Engine
This is Rietveld 408576698