spritebuilder / SpriteBuilder

Objective-C Game Development Suite
http://www.spritebuilder.com/
Other
741 stars 293 forks source link

Arrow keys should nudge position #1316

Open nheagy opened 9 years ago

nheagy commented 9 years ago

The arrow keys should nudge the position of the currently selected node in 1pt increments.

Ideally, this would allow support Shift-Nudge to jump by 10 points.

NickyWeber commented 9 years ago

+1

efusco commented 9 years ago

+1 to this, I would love to have this feature!!

Sent from my iPhone

On Jan 28, 2015, at 11:55 AM, Nate Heagy notifications@github.com wrote:

The arrow keys should nudge the position of the currently selected node in 1pt increments.

Ideally, this would allow support Shift-Nudge to jump by 10 points.

— Reply to this email directly or view it on GitHub.

stuartcarnie commented 9 years ago

This is already supported under the Object Nudge / Move menu items. Nudge is ⌘+arrow for 1pt and Move is ⌘+⇧+arrow for 10pt

NickyWeber commented 9 years ago

Exactly and it's pretty annoying that you have to hold a modifier key while arrow keys alone just don't do anything.

cocojoe commented 9 years ago

Arrows keys alone will navigate the node hierarchy in timeline.

NickyWeber commented 9 years ago

@cocojoe thanks. still as a default behavior I'd rather move nodes on stage.

stuartcarnie commented 9 years ago

Easy enough to fix – want me to take it?

NickyWeber commented 9 years ago

It's a product decision we cannot make, I'll ask Vik next week.

vlidholt commented 9 years ago

We have looked into this one before, and is not at easy as it sounds. The arrow keys are used for other purposes such as moving between selections in the list and table views and when editing properties in the text boxes. The Cmd-arrow keys are used by other applications such as Photoshop, so most users are already used to it.

stuartcarnie commented 9 years ago

I agree @vlidholt – the feature is already there and useful as is, even if one has to use the modifier keys.

I suspect the complexity is because the events are handled globally (on the application delegate), rather than using the responder chain. If the Cocos2D view becomes the first responder, we can handle those locally.

I would like to see the arrow keys work intuitively based on the current focus (which is consistent with other applications)

nheagy commented 9 years ago

Actually @vlidholt Photoshop uses Arrows without Cmd, it happens to work because Cmd-Arrow is unassigned.

It is because of the supremacy of the arrow keys that most video/animation apps use , and . to move the scrubber, @stuartcarnie. This way you can both move objects and the scrubber without worrying about focus.

stuartcarnie commented 9 years ago

@nheagy I like the , and . shortcuts