Zoom and Pan keyboard shortcuts

Post questions on how to use or achieve an effect in Inkscape.
dowlassmoss
Posts: 2
Joined: Thu Oct 31, 2013 11:30 pm

Zoom and Pan keyboard shortcuts

Postby dowlassmoss » Fri Nov 01, 2013 12:30 am

I thought Inkscape would be an interesting programme to get to know - I use Freehand (Mac) 99% of the time and Illustrator 1% ; I thought an opensource programme would be useful to investigate.

However, I'm at a loss to know how to map Freehand shortcuts, notably zoom and pan, to Inkscape? Perhaps more than anything else in a vector drawing programme, one is constantly zooming in and out and moving around to areas of a drawing. The Freehand keyboard shortcuts for zooming an/out and panning are intuitive, simple, and allow you to keep one hand firmly on the mouse. Trying out Inkscape, it's much less intuitive, and seems very difficult to select an area of the drawing to zoom into by mouse dragging. In fact I can't do it. I also can't find any panning gesture?

I might get really excited by Inkscape if I could use my well known (and I consider them the best) zooming and panning shortcuts. So my question is, can I map them to Inkscape? And if so, how?

Many thanks

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Zoom and Pan keyboard shortcuts

Postby Lazur » Fri Nov 01, 2013 7:26 am

Welcome aboard!

To pan: press the middle mouse button/wheel and move the mouse.
To zoom: hold Ctrl and turn that scrollwheel of the mouse, or
press + and - keys on the numpad.

At the help menu a list to the key shortcuts is linked:
http://inkscape.org/doc/keys048.html

Good luck!

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: Zoom and Pan keyboard shortcuts

Postby Maestral » Fri Nov 01, 2013 9:13 am

:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

dowlassmoss
Posts: 2
Joined: Thu Oct 31, 2013 11:30 pm

Re: Zoom and Pan keyboard shortcuts

Postby dowlassmoss » Sat Nov 02, 2013 12:18 am

Hi Lazur and Maestral, thanks for the welcome.

Lazure - I'm on a Mac, don't have a mouse like that ;) Keep having to take hand off mouse to do +/-, very inconvenient. Can't seem to drag enlarge at all, nor pan.

Maestral - that sounds exactly what I need. So I downloaded the freehand.xml file and put it in keys, changed it's name to default.xml and rebooted. Doesn't seem to be much difference...? And then I realised that it's probably the Freehand shortcuts for a Windows machine, not a Mac...??

So no further forward, really :(

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: Zoom and Pan keyboard shortcuts

Postby Maestral » Thu Nov 07, 2013 9:46 am

Perhaps.....

Mac OS X specific issues
How can I make the Alt key work ?

If you find yourself unable to use Inkscape functions that require the alt key (i.e. option key) such as Alt+D to create a clone or Alt+Click to select under, you will need to turn off the "Emulate three button mouse" under the Input Preferences for X11.

Recent X11/Xquartz versions (≥ 2.5.1) have a new GUI option in the preferences dialog to make the option/alt key work like a real Alt modifier instead of Mode_switch (X11 Preferences > Input > Option keys send Alt_L and Alt_R). Changing this setting will have the downside of no longer being able to input diacritic and other special characters via keyboard in X11-based applications because both option keys will be changed - see below for a more fine-grained solution.

If you still cannot get it to work you can try using a keyboard mapping file for X11 (the environment Inkscape is running in) called an xmodmap (keyboard modifier map and keymap table). Open a terminal and type

Code: Select all

cd ~
touch .Xmodmap

This will create a new text file called ".Xmodmap" in your home directory. The period before the actual file name "Xmodmap" causes the file to stay hidden within the Finder.
Now open the file by typing

Code: Select all

open .Xmodmap

and paste the following into the newly created file:

Code: Select all

keycode 66 = Alt_L

This defines the left option key as alt within all X11 applications, enabling Alt based shortcuts. You need to re-start X11 to see the change.
The right option key stays the same though, so you cannot use it as Alt but you can still use it to type special characters such as é, ß or \ on non-US keyboards (which is Shift+Option+7 on a German keyboard for example). It makes typing those letters more cumbersome but the user (unfortunately) has to determine him/herself which of the two functionalities is needed most for his/her daily business.

How can I make keyboard shortcuts work with Command instead of Control ?

Inkscape runs under X11 and is originally a Linux app, so all keyboard shortcuts are based on Control and not Command as in OS X. For example, Copy is ⌃C and not ⌘C. You can use an ".Xmodmap" file to switch the behaviours of Control and Command in X11 applications. See above how to create and open the .Xmodmap file. Then paste this inside:

Code: Select all

! Switch meta and control
keycode 67 = Meta_L
keycode 63 = Control_L
keycode 71 = Control_R
clear mod2
clear control
add mod2 = Meta_L
add control = Control_L Control_R


Finally, in X11, make sure that the option "Enable key equivalents in X11" is unchecked and restart X11. Now ⌘C should copy, ⌘V paste etc.


Source page
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

User avatar
GAngus
Posts: 83
Joined: Tue Oct 13, 2009 8:41 am
Location: NY

Re: Zoom and Pan keyboard shortcuts

Postby GAngus » Thu Nov 07, 2013 10:27 pm

What kind of mouse are you using ?
Apple "Magic Mouse" by chance ?

Uktrunie
Posts: 154
Joined: Sun Jul 18, 2010 4:48 am

Re: Zoom and Pan keyboard shortcuts

Postby Uktrunie » Sat Nov 09, 2013 1:34 pm

Also, for the zoom. You can change the default behavior in Preferences > Scrolling > Mouse wheel zooms by default.


Return to “Help with using Inkscape”