Repository navigation
Drawing
The canvas opens when a drawing is active: the tool rail on the left, the page in the middle, the Analysis panel on the right when it is open. Every gesture, hover key or command is one undo step (Ctrl+Z, Ctrl+Shift+Z or Ctrl+Y; Cmd on macOS).
Press a tool's key with the pointer away from atoms and bonds, or click it on the rail. Shift with the key steps to the next tool of that group; a rail button that holds more than one tool opens its flyout when held or right-clicked.
| Key | Group | Tools | What a click or drag does |
|---|---|---|---|
V |
Selection | Select, Lasso (L) |
Click to select, drag on empty paper for a marquee (the lasso draws a free shape). Drag a selection to move it (Shift keeps it level or upright); drag one atom to reshape, dropping it on another atom merges them. The round handle above a selection rotates it in 15 degree steps (Shift for free rotation). Arrow keys nudge by 1 pt, Shift 10 pt, Alt 0.1 pt. |
B |
Bonds | Single, double, triple, wedge, hashed wedge, wavy, bold, dashed, dative, aromatic | Click empty paper for a new bond, click an atom to grow a bond from it at a good angle, drag from an atom to aim it, click a bond to change it to the tool's kind. |
C |
Chain | Chain | Drag from an atom or empty paper to draw a zig-zag chain; a note shows the carbon count, and typing digits during the drag sets it. |
R |
Rings | Benzene, cyclopropane to cyclooctane | Click empty paper for a free ring, click a bond to fuse a ring onto it, click an atom for a spiro ring (Alt-click attaches the ring through a new bond). |
A |
Atom Label | Atom label | Click an atom to type its label (elements, charges, abbreviations such as OMe or CO2H). |
T |
Text | Text | Click to type a text block. |
E |
Eraser | Eraser | Click or drag across atoms, bonds and objects to remove them. |
H |
Hand | Hand | Drag to pan (holding Space pans with any tool). |
Z |
Zoom | Zoom | Click to zoom in at the point, Alt-click to zoom out. Ctrl with the wheel zooms anywhere; View has Zoom In (Ctrl+=), Zoom Out (Ctrl+-), Zoom to Fit (Ctrl+0) and Actual Size (Ctrl+1). |
Right-click an atom, a bond or the paper for its context menu. Structure has Clean Up Structure, Lay Out Structure, Check Structure and the flips; Arrange has align, distribute and Rotate 90 Degrees; Edit has Duplicate (Ctrl+D), Delete and Select All (Ctrl+A).
Point at an atom or a bond (no click) and press a key. It works with the selection and every drawing tool, and each key is one undo step. This table is HOVER_KEY_MAP in frontend/src/canvas/tools/hotkeys.ts.
| On | Keys | Does |
|---|---|---|
| atom |
C N O S P F I H B K
|
set that element |
| atom | L |
chlorine |
| atom | Shift+B |
bromine |
| atom | R |
generic R group |
| atom |
A Q X M
|
query any atom, heteroatom, halogen, metal |
| atom | D |
deuterium |
| atom | a letter, then another within 600 ms | two-letter element (N A = Na, C L = Cl, S I = Si, B R = Br) |
| atom |
1 to 9
|
attach a zig-zag carbon chain of that many atoms |
| atom |
Shift+3 to Shift+8
|
attach a saturated ring through a new bond |
| atom |
Alt+Shift+3 to Alt+Shift+8
|
spiro ring at the atom |
| atom | Alt+B |
attach phenyl |
| atom |
+ -
|
formal charge up or down by 1 |
| atom | . |
toggle a radical dot |
| atom | : |
add a lone pair (cycles 0 to 4) |
| atom | Enter |
type a label |
| atom | Space |
revert to implicit carbon |
| atom |
Delete Backspace
|
delete the atom and its bonds |
| bond |
1 2 3
|
single, double, triple |
| bond | 4 |
aromatic |
| bond | 0 |
query any bond |
| bond | W |
solid wedge, again reverses |
| bond | H |
hashed wedge, again reverses |
| bond | Y |
wavy |
| bond | B |
toggle bold |
| bond | D |
toggle dashed |
| bond |
C L R
|
double bond centred, left, right |
| bond | F |
bring to front at crossings |
| bond |
Shift+3 to Shift+8
|
fuse a saturated ring of that size |
| bond | Shift+B |
fuse a benzene ring |
| bond |
Delete Backspace
|
delete the bond and any bare carbon left alone |
While the pointer rests on an atom or a bond, its hover keys win over the tool keys of the same letter.
- Move focus to the canvas (
Tabfrom the rail, or click it once). - Press
Enter. The keyboard cursor (a highlight the screen reader announces) lands on the first atom in reading order; on an empty pageEnterfirst places a carbon in the middle of the view. - Arrow keys move the cursor along bonds to the neighbouring atom in that direction;
Ctrlwith an arrow puts it on the bond instead.TabandShift+Tabjump to the next or previous structure. - To add a bond, press
Enteron an atom, then an arrow key: a carbon is added in that direction at the drawing's bond length and angle (joining an atom already there), and the cursor moves to it. - Every hover key works on the atom or bond under the cursor:
Ofor oxygen,2for a double bond,Shift+6for a ring,4for a chain of four,Enterthen typing for a label. - The context-menu key or
Shift+F10opens the menu of the atom or bond under the cursor.Escapeleaves the cursor.
Structures can also come in without drawing: Insert > Structure from SMILES, or File > Open for molfile, SDF, RXN, SMILES, InChI, CML and CDXML files.
New drawings start from the default style chosen in Preferences > Drawing (Journal standard (1996), Journal variant B, Large screen or New document) with the bond length, line width, bold width and label size set there on top; choosing a style fills those numbers in from it. Preferences > Drawing and Chemistry also switch element colours, carbon labels, aromatic circles, valence warnings and stereo labels for the view.
FormChem
- Home
- Manual
- Getting Started
- Drawing
- Grid and Page
- Annotations
- Reactions
- Templates
- Printing and pages
- Keyboard Shortcuts
- Stereo and Queries
- Analysis
- Names
- Spectra and NMR
- 3D
- Databases
- Lab Notebook
- Biopolymers
- Live Structures
- Accessibility
- Formats and Export
- Clipboard
- Command Line
- Agents
- Agent Activity
- Terminal
- Extensions
- Project Format
- Architecture
- Desktop
- Troubleshooting
- Development
- Releasing
Documents