Commit 1ec777c0 authored by Santiago Aboy Solanes's avatar Santiago Aboy Solanes Committed by Commit Bot

[turbolizer] Add shortcuts for hide (un)selected nodes

Bug: v8:7327
Change-Id: I0baece9baa3147c9cf0b555879b0cbb138f5e871
Notry: true
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1940158
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Auto-Submit: Santiago Aboy Solanes <solanes@chromium.org>
Reviewed-by: 's avatarSigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65334}
parent 99005f33
......@@ -30,6 +30,22 @@
<td>/</td>
<td>Select search box</td>
</tr>
<tr>
<td>i</td>
<td>Reveal node's input nodes</td>
</tr>
<tr>
<td>o</td>
<td>Reveal node's output nodes</td>
</tr>
<tr>
<td>s</td>
<td>Hide selected nodes</td>
</tr>
<tr>
<td>u</td>
<td>Hide unselected nodes</td>
</tr>
</table>
</div>
</div>
......@@ -65,15 +81,7 @@
<td>Select effect output node</td>
</tr>
<tr>
<td>i</td>
<td>Reveal node's input nodes</td>
</tr>
<tr>
<td>o</td>
<td>Reveal node's output nodes</td>
</tr>
<tr>
<td>s</td>
<td>p</td>
<td>Select node's origin node</td>
</tr>
</table>
......
......@@ -599,13 +599,29 @@ export class GraphView extends PhaseView {
eventHandled = false;
}
break;
case 83:
// 's'
case 80:
// 'p'
view.selectOrigins();
break;
default:
eventHandled = false;
break;
case 83:
// 's'
if (!d3.event.ctrlKey && !d3.event.shiftKey) {
this.hideSelectedAction(this);
} else {
eventHandled = false;
}
break;
case 85:
// 'u'
if (!d3.event.ctrlKey && !d3.event.shiftKey) {
this.hideUnselectedAction(this);
} else {
eventHandled = false;
}
break;
}
if (eventHandled) {
d3.event.preventDefault();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment