6.5 Transforming with Keyboard Shortcuts

Transforming objects by dragging them or their handles on the canvas is easy and intuitive, but it’s not very precise (even when using various constrained modes) and may sometimes feel quite clumsy. Many long-time users of Inkscape prefer to use keyboard shortcuts for most of their transformations.

Keyboard shortcuts for transforming objects are easy to remember, and often, they will make your work a lot easier. Another reason to learn these keys is that, as we will see in the rest of the book, they are used consistently in many other tools and contexts to perform analogous functions—for example, to transform nodes with the Node tool, text characters with the Text tool, or gradient handles with the Gradient tool.

Note

Skewing is not possible from the keyboard, which is understandable given that this operation is not used all that often.

The , , , and arrow keys move the selection. The amount of move depends on the modifiers.

The ease and predictability of the keyboard move commands make them useful in a lot of different situations. For example, sometimes I need to do something to objects obscured by some large foreground object. -clicking to “select under” works, but it’s often too cumbersome; moving the foreground object to a new layer and hiding that layer is also a good option, but it is even more cumbersome. In such cases, I often select the foreground object and move it off (to the right) by several or keystrokes. When finished, I will select it again and move it precisely back into place by the same number of movement keystrokes in the opposite direction. (Just remember to not use -arrows in this case because you may be at a different zoom level when moving the object back, and that would affect the distance.) The same “move away and then back” trick is useful for analyzing complex compositions when I’m trying to find out which parts of the drawing correspond to which objects.

The and keys (angle brackets) scale the selection down and up, respectively. Keyboard scaling always preserves aspect ratio and is performed around the geometric center of the object’s bounding box (not around its moveable rotation center). Again, the amount of scaling depends on the modifiers.

The and keys (square brackets) rotate selection counterclockwise and clockwise, respectively. Rotating is performed around the moveable rotation center that is visible in Selector’s rotate mode; unless you moved it, it’s the geometric center of the object’s bounding box. Again, the amount of rotation depends on the modifiers.

Also, four common transformations are accessible both as keyboard shortcuts and as buttons on the Selector tool’s controls bar, as shown in Figure 6-9:

To make two objects exchange places, you can use double flipping: First, select them both and flip them as a whole; then, select each one in turn and flip it individually to restore it. To make the exchange two-dimensional, you will need to perform this procedure twice, once using horizontal flipping () and then using vertical flipping ().

Artists sometimes use flipping to check their work. When you’re drawing something, it’s easy to grow progressively blinder to your errors exactly because you’re looking at them for so long. In this situation, flipping the entire drawing horizontally or vertically gives you a fresh look at the drawing and makes many problems with shape, balance, or composition painfully obvious.