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

Unified Diff: tools/turbolizer/graph-view.js

Issue 2169053002: [turbolizer] Add two keyboard shortcuts: R for relayout, / for search. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@t-p6
Patch Set: Created 4 years, 5 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/turbolizer/graph-view.js
diff --git a/tools/turbolizer/graph-view.js b/tools/turbolizer/graph-view.js
index 7431f4b9a14fe4501ceb652cd88e7d3085710152..51d0e4fddf88907958553309be086c5318a021aa 100644
--- a/tools/turbolizer/graph-view.js
+++ b/tools/turbolizer/graph-view.js
@@ -625,6 +625,19 @@ class GraphView extends View {
showSelectionFrontierNodes(d3.event.keyCode == 38, undefined, true);
break;
}
+ case 82:
+ // 'r'
+ if (!d3.event.ctrlKey) {
+ this.layoutAction(this);
+ } else {
+ eventHandled = false;
+ }
+ break;
+ case 191:
+ // '/'
+ document.getElementById("search-input").focus();
+ document.getElementById("search-input").select();
+ break;
default:
eventHandled = false;
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698