Skip to content

Instantly share code, notes, and snippets.

@jeremyabel
Created September 28, 2014 21:36
Show Gist options
  • Save jeremyabel/b2e56c6d17d8ce68abf4 to your computer and use it in GitHub Desktop.
Save jeremyabel/b2e56c6d17d8ce68abf4 to your computer and use it in GitHub Desktop.
- Arrowkey nav, jump to next node in direction of arrow
- Enter to select node, then arrows to select port, enter to jump along that port
@michaelbartnett
Copy link

I like. For the "in direction of arrow bit" there should be a spatial priority thing.

In this case, pressing Right-Arrow while A is focused goes to B

+-------+      +-------+
|       |      |  B    |
|       |      +-------+
|       |
|   A   |
|       |      +-------+
|       |      |  C    |
+-------+      +-------+

In this case, pressing Right-Arrow while A is focused goes to C

+-------+          +-------+
|       |          |  B    |
|       |          +-------+
|       |
|   A   |
|       |      +-------+
|       |      |  C    |
+-------+      +-------+

In this case, going to C isn't as obvious, maybe a certain distance threshold is required before a node is cosidered to be offset far enough on one axis to lose navigation priority?

+-------+       +-------+
|       |       |  B    |
|       |       +-------+
|       |
|   A   |
|       |      +-------+
|       |      |  C    |
+-------+      +-------+

[edit]

And then since B is fully within A's horizontal axis, should it get priority over C here?

+-------+       +-------+
|       |       |  B    |
|       |       +-------+
|       |
|   A   |
|       |
|       |      +-------+
+-------+      |  C    |
               +-------+

@michaelbartnett
Copy link

Something that I like in Unity 4's inspector is that you have a similar interaction with moving up and down through property drawers, hitting enter to edit that property, then hitting enter to go back to property-nav mode.

I want to be able to move down through properties and then jump to a nearby node quickly. Maybe use a modifier key to distinguish between property navigation and node navigation?

e.g.

  • NodeNav := ArrowKeys
  • PropertyNav := Ctrl+ArrowKeys

The key is is that properties are not assumed to be listed only vertically, so you can focus property editors within a node, then hitting Enter or some other key while a connection port is focused could focus the node that this port is connected to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment