Skip to content

Drawing

nodemode-ai edited this page Dec 3, 2026 · 4 revisions

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).

Tools

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).
W P K G O Arrows, Symbols, Brackets, Shapes, Orbitals and Table, TLC, Image, Caption (in Text) The annotation tools of 0.5.0; see Annotations. Reaction arrows and plus signs make a scheme FormChem can read; see Reactions.

Right-click an atom, a bond or the paper for its context menu; from 0.6.0 the atom and bond menus also hold Atom Query, Enhanced Stereo, Query Bond and Define R-Group, and a selection of several atoms Contract Abbreviation. Structure has Clean Up Structure, Lay Out Structure, the abbreviation and explicit hydrogen commands, Assign Wedges, the Enhanced Stereo and Query submenus, Check Structure, Compute Properties and the flips (see Stereo and Queries and Analysis); Arrange has the stacking order, align, distribute, Rotate 90 Degrees, Group and Ungroup; Edit has Duplicate (Ctrl+D), Delete, Select All (Ctrl+A), Find, Find Substructure and Copy as SMARTS. With the selection tool, a selected arrow, line or box shows handles to reshape it.

Hover keys

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.

Drawing with the keyboard alone

  1. Move focus to the canvas (Tab from the rail, or click it once).
  2. Press Enter. The keyboard cursor (a highlight the screen reader announces) lands on the first atom in reading order; on an empty page Enter first places a carbon in the middle of the view.
  3. Arrow keys move the cursor along bonds to the neighbouring atom in that direction; Ctrl with an arrow puts it on the bond instead. Tab and Shift+Tab jump to the next or previous structure.
  4. To add a bond, press Enter on 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.
  5. Every hover key works on the atom or bond under the cursor: O for oxygen, 2 for a double bond, Shift+6 for a ring, 4 for a chain of four, Enter then typing for a label.
  6. The context-menu key or Shift+F10 opens the menu of the atom or bond under the cursor. Escape leaves the cursor.

Structures can also come in without drawing: Insert > Structure from SMILES, Insert > Template... (206 rings, heterocycles, amino acids, sugars, nucleotides, protecting groups, reagents and glassware), Reaction > Insert Reaction from Clipboard, or File > Open for molfile, SDF, RXN, SMILES, InChI, CML and CDXML files (RXN files and reactions in CML or CDXML open as drawn schemes).

Styles

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. The View menu has Show Stereochemistry (CIP labels), Show Enhanced Stereo Groups (abs, and1, or1 under the labels) and Show Query Features (the purple query tags); the last two are choices of this window, not of the drawing.

Clone this wiki locally