XV: Mouse and Keyboard Usage

# Mouse and Keyboard Usage

## Mouse Usage in the Image Window

Modifier Keys | Button | Action
--- | --- | ---
| Button1 | draws a selection rectangle
| Button2 | display pixel values, measure distance, picks drawing color
| Button3 | opens or closes the xv controls window
<Ctrl> | Button1 | Zoom In
<Ctrl> | Button2 | Pan (while zoomed in)
<Ctrl> | Button3 | Zoom Out
<Shift> | Button1 | draws a square selection rectangle
<Shift> | Button2 | freehand drawing tool
<Shift><Ctrl> | Button2 | line drawing tool
<Shift> | Button3 | smudging tool

## Mouse Usage in Selection Rectangle

Modifier Keys | Button | Action
--- | --- | ---
| Button1 | moves selection rectangle
<Shift> | Button1 | moves selection, constrains motion
| Button2 | 'drag-and drop' cut and paste
<Shift> | Button2 | 'drag and drop' cut and paste, constrains motion
<Ctrl> | Button2 | 'drag and drop' copy and paste
<Shift> <Ctrl> | Button2 | 'drag and drop' copy and paste, constrains motion

## Normal Keyboard Equivalents

The following keyboard equivalents can be used in most xv windows, including the xv image, xv controls, xv color editor, and so on, but not the xv visual schnauzer.

Key(s) | Action
--- | ---
<Tab> or <Space> | Next
<Return> | reload currently selected image file
<Delete> or <Backspace> | Prev
<Ctrl> l | Load
<Ctrl> s | Save
<Ctrl> p | Print
<Ctrl> d | Delete
<Ctrl> q or q | Quit
<Meta> x | Cut
<Meta> c | Copy
<Meta> v | Paste
<Meta> d | Clear
n | reset image to Normal size
m | Max
M | Maxpect
> | Double Size
< | Half Size
<Period> | 10% Larger
<Comma> | 10% Smaller
S | Set Size
a | Re-Aspect
4 | 4x3
I | Int. Expand
t | turn image 90 degrees clockwise
T | turn image 90 degrees counter-clockwise
h | flip image horizontally
v | flip image vertically
P | Pad
A | Text Annotation
c | Crop
u | UnCrop
C | AutoCrop
r | Raw
d | Dither
s | Smooth
<Meta> 8 | toggle between 8-bit and 24-bit modes
<Ctrl> v or V | Visual Schnauzer
e | Color Editor
i | Image Info
<Ctrl> c | Image Comments
<Ctrl> t | Text View
<Ctrl> g | Grab
<Ctrl> a | About XV
<Meta> b | Blur
<Meta> s | Sharpen
<Meta> e | Edge Detection
<Meta> m | Emboss
<Meta> o | Oil Paint
<Meta> B | Blend
<Meta> t | Copy Rotate
<Meta> T | Clear Rotate
<Meta> p | Pixelize
<Meta> S | Spread
<Meta> r or R or <Meta> 0 | Reset command in xv color editor
<Meta> 1 | select preset #1 in xv color editor
<Meta> 2 | select preset #2 in xv color editor
<Meta> 3 | select preset #3 in xv color editor
<Meta> 4 | select preset #4 in xv color editor
<Meta> a | Apply command in xv color editor

### Image Window Keys

The following keys can only be used inside the image window.

Key(s) | Action
--- | ---
<Ctrl> <Up> | crops 1 pixel off the bottom of the image
<Ctrl> <Down> | crops 1 pixel off the top of the image
<Ctrl> <Left> | crops 1 pixel off the right side of the image
<Ctrl> <Right> | crops 1 pixel off the left side of the image

If you're viewing a multi-page document:

Key(s) | Action
--- | ---
p | opens a 'go to page #' dialog box
<PageUp> | go to previous page
<PageDown> | go to next page

If a selection rectangle is active:

Key(s) | Action
--- | ---
<Up> | moves the selection rectangle up 1 pixel
<Down> | moves the selection rectangle down 1 pixel
<Left> | moves the selection rectangle left 1 pixel
<Right> | moves the selection rectangle right 1 pixel
<Shift> <Up> | shrink rectangle's height by 1 pixel
<Shift> <Down> | expand rectangle's height by 1 pixel
<Shift> <Left> | shrink rectangle's width by 1 pixel
<Shift> <Right> | expand rectangle's width by 1 pixel

## Visual Schnauzer Keys

The following keys can only be used in the visual schnauzer windows.

Key(s) | Action
--- | ---
<Ctrl> d | Delete File(s)
<Ctrl> n | New Directory
<Ctrl> r | Rename File
<Ctrl> s | ReScan Directory
<Ctrl> w | Open New Window
<Ctrl> u | Update Icons
<Ctrl> g | Generate Icons
<Ctrl> a | Select All Files
<Ctrl> t | Text View
<Ctrl> q | Quit XV
<Ctrl> c | Change Directory
<Ctrl> f | Select Filenames
<Ctrl> e | Recursive Update
<Esc> | Close Window
<Return> | load currently selected file(s)
<Space> | load next file
<Shift> <Space> | load next file, keeping previous file(s) selected
<Backspace> | load previous file