Keyboard shortcuts
On macOS, every Ctrl shortcut listed here also works with Cmd, except Ctrl+Tab and Ctrl+Shift+Tab, which need Ctrl. In the editor, press ? or select Help > Keyboard Shortcuts for a searchable list, or press Ctrl+K to run any command by name from the command palette.
Shortcuts do not work while you are typing in a text field, a text annotation, or a dialog, and tool shortcuts are ignored while a menu, a dialog, or the color picker is open. File, tab, and command palette shortcuts (Ctrl+S, Ctrl+O, Ctrl+N, Ctrl+K, Ctrl+T, Ctrl+Tab) work even from a text field.
Turning off single-key shortcuts
Section titled “Turning off single-key shortcuts”Edit > Single-Key Shortcuts is on by default. To turn off every shortcut that is a single letter, digit, or symbol with no modifier (tool keys, element keys, G grid snap, relabeling by typing over an atom), clear it. Shortcuts that use Ctrl, Cmd, or Alt, and keys such as Esc, Delete, the arrow keys, and F7, keep working. The keyboard cursor keys described under Drawing from the keyboard also keep working, because they act only while the canvas has focus, and so do the keys of the Match Editor while it is open.
| Shortcut | Action |
|---|---|
| V | Select tool |
| B | Bond tool |
| R | Ring tool |
| L | Lone pair tool (Electrons) |
| . | Radical tool |
| E | Eraser tool |
| T | Text tool |
| U | Shape tool |
| [ | Bracket tool |
| A | Arrow tool |
| \ | Line tool |
| J | Projection tool (P is phosphorus) |
| M | LaTeX tool |
| H | Pan tool (only when no arrow is selected and the Arrow tool is not active; otherwise H cycles the arrowhead style) |
| Shift+O | Orbital tool (plain O is oxygen) |
| Shift+T or Ctrl+Shift+T | Open the template browser |
Elements
Section titled “Elements”These keys set the active element for the next atom drawn and switch to the Bond tool, which places and relabels atoms. They do not change selected atoms; to relabel an existing atom, point at it and type (see below), or click it with the Bond tool.
| Shortcut | Action |
|---|---|
| C | Carbon |
| N | Nitrogen |
| O | Oxygen |
| S | Sulfur |
| P | Phosphorus (opens the Object Properties panel instead when atoms, bonds, lone pairs, radicals, or orbitals are selected, and the properties panel of a single selected arrow, shape, LaTeX equation, or image) |
| F | Fluorine (flips the curve direction instead when a single curved arrow is selected; with a single arrow selected that has no bow, does nothing) |
| I | Iodine |
Relabeling an atom by typing over it
Section titled “Relabeling an atom by typing over it”With the Select or Bond tool active, point at an atom and type an element symbol, such as Cl or Br, to relabel it. The label previews as you type. After a letter such as R or X, digits are accepted as well, so R1 or X2 works. The change commits after a short pause, when you press Enter, or when the pointer leaves the atom, and it is one undo step. Esc cancels and restores the original label. G is never used for relabeling, because it is the grid-snap key.
Relabeling takes priority over the tool and element shortcuts, so while the pointer rests on an atom, C relabels that atom rather than choosing carbon.
Charge
Section titled “Charge”| Shortcut | Action |
|---|---|
| + or = | Increase the charge on the selected atoms |
| - | Decrease the charge on the selected atoms |
Charge stays within −6 to +6. Setting a charge back to 0 also clears any custom charge position or color. The whole change is one undo step, however many atoms are selected.
Edit and history
Section titled “Edit and history”| Shortcut | Action |
|---|---|
| Ctrl+Z | Undo |
| Ctrl+Y or Ctrl+Shift+Z | Redo |
| Ctrl+D | Duplicate the selection |
| Ctrl+G | Group the selection |
| Ctrl+Shift+G | Ungroup the selection |
| Delete or Backspace | Delete the selected items (also removes a waypoint or Bezier handles from a multi-segment arrow when the pointer is near one) |
| Esc | Cancel the current gesture, leave an entered group, or clear the selection (see below) |
| Enter | Finish a multi-segment arrow or line; with one text annotation selected, open its editor |
Undo and redo do not work while a drag is in progress. An action that changes nothing, such as pressing a slider without moving it or opening an editor and closing it unchanged, adds no undo step, so you can still redo what you undid before it.
In one case, deleting atoms takes two steps. If you select only atoms, and a carbon among them is showing its C label and has bonds, the first Delete hides the label and turns it back into a bare vertex; a second Delete removes the atom. Other atoms are deleted at once. If you select a region with a selection box, everything in the box is deleted in one step.
Esc handles one thing per press, innermost first: it closes an open popover, cancels a bond or arrow being drawn, cancels a drag in progress and puts the objects back (the redo history is kept), leaves an entered group, and finally clears the selection.
| Shortcut | Action |
|---|---|
| Ctrl+N | New file (see the browser note under Tabs) |
| Ctrl+O | Open a file |
| Ctrl+S | Save |
| Ctrl+Shift+S | Save as |
Selection and clipboard
Section titled “Selection and clipboard”| Shortcut | Action |
|---|---|
| Ctrl+A | Select all atoms, bonds, and annotations |
| Ctrl+C | Copy the selection |
| Ctrl+X | Cut the selection |
| Ctrl+V | Paste |
| Ctrl+Shift+C | Copy as image |
| Ctrl+Alt+C or Alt+Shift+C | Copy style |
| Ctrl+Alt+V or Alt+Shift+V | Paste style |
Align and rotate
Section titled “Align and rotate”These run the alignment toolbar commands on the selection. They work only while something is selected, and not while a text editor or text field has the keyboard. The keys are matched by their position on the keyboard, so they work on layouts where Alt types a symbol.
| Shortcut | Action |
|---|---|
| Alt+A | Align left |
| Alt+H | Align centers horizontally |
| Alt+D | Align right |
| Alt+W | Align top |
| Alt+V | Align middles vertically |
| Alt+S | Align bottom |
| Alt+Shift+H | Distribute horizontally (equal gaps) |
| Alt+Shift+Y | Distribute vertically (equal gaps) |
| Alt+[ | Rotate 90° counterclockwise |
| Alt+] | Rotate 90° clockwise |
Text editing
Section titled “Text editing”To open the editor of a selected text annotation, press Enter. These keys work while you edit a text annotation.
| Shortcut | Action |
|---|---|
| Ctrl+B / Ctrl+I / Ctrl+U | Bold / italic / underline |
| Ctrl+Shift+X | Strikethrough |
| Ctrl+= | Subscript |
| Ctrl+Shift+= | Superscript |
| Ctrl+Shift+V | Paste as plain text |
| Enter | New line |
| Ctrl+Enter | Finish editing |
| Tab / Shift+Tab | Indent / outdent in a list |
View and panels
Section titled “View and panels”| Shortcut | Action |
|---|---|
| + or = | Zoom in (when no atoms are selected) |
| - | Zoom out (when no atoms are selected) |
| Ctrl+= | Zoom in, even with atoms selected. The browser page does not zoom. |
| Ctrl+- | Zoom out, even with atoms selected. The browser page does not zoom. |
| Ctrl+0 | Reset View (100% zoom, view back at the origin) |
| Ctrl+Shift+0 | Zoom to Fit |
| Ctrl+Home | Center View |
| Ctrl+; | Turn smart guides on or off |
Ctrl+' |
Show or hide the grid |
Ctrl+Shift+' |
Open Grid Settings |
| Ctrl+Alt+= | Make the interface larger |
| Ctrl+Alt+- | Make the interface smaller |
| Ctrl+Alt+0 | Reset the interface size |
| F7 | Show or hide the Layers panel |
| Ctrl+] | Bring the selected layer forward |
| Ctrl+[ | Send the selected layer backward |
| Ctrl+Shift+] | Bring the selected layer to the front |
| Ctrl+Shift+[ | Send the selected layer to the back |
| Ctrl+K | Open the command palette |
The layer keys are matched by their position on the keyboard, so Ctrl+Shift+] and Ctrl+Shift+[ work on layouts where Shift turns the brackets into braces, such as US English.
The interface size shortcuts scale the menus, panels, and toolbars between 80% and 200% in 10% steps without changing the canvas zoom. The same control is in the status bar as the UI: minus and plus buttons; to reset, Ctrl+click either button.
The Collections panel has no shortcut; use View > Collections Panel. See Named selections.
Viewport (mouse)
Section titled “Viewport (mouse)”Mouse and trackpad gestures for moving around the canvas. See Pan and zoom the canvas for details.
| Gesture | Action |
|---|---|
| Scroll wheel | Pan the canvas |
| Shift+scroll wheel | Pan sideways (for mice without a tilt wheel) |
| Ctrl+scroll wheel | Zoom toward the pointer (also trackpad pinch) |
| Middle-drag or right-drag | Pan, whatever tool is active |
| Shortcut | Action |
|---|---|
| Ctrl+T | New tab |
| Ctrl+Tab | Next tab |
| Ctrl+Shift+Tab | Previous tab |
| Ctrl+1 to Ctrl+9 | Switch to tab 1 through 9 |
Browsers reserve Ctrl+T, Ctrl+N, Ctrl+Tab, Ctrl+Shift+Tab, and Ctrl+1 to Ctrl+9 for their own tabs and windows, so in a browser window these keys can open a browser tab instead of a document tab. To open a new document tab, click + in the tab bar or choose File > New. Molkit never intercepts Ctrl+W, so it closes the browser tab.
Movement (nudge)
Section titled “Movement (nudge)”Nudging moves selected atoms and annotations.
| Shortcut | Action |
|---|---|
| Arrow keys | Nudge the selection by 1 canvas unit (1 screen pixel at 100% zoom) |
| Shift+arrow keys | Nudge the selection by 10 canvas units |
| Ctrl+Shift+arrow keys | Nudge the selection by 1 screen pixel |
Holding an arrow key, or pressing it quickly several times, counts as one move, so a single Ctrl+Z undoes the whole run. A nudge never snaps, but with smart guides on, the guides the selection lines up with are shown until 0.7 seconds after the last key (see Smart guides). When nothing else is selected but a net dipole arrow is, the arrow keys move the dipole arrow instead.
Arrows
Section titled “Arrows”H cycles the arrowhead style of the selected arrows, or of the Arrow tool’s default head when no arrow is selected. The cycle is filled, harpoon-up, harpoon-down, then filled again.
| Shortcut | Action |
|---|---|
| H | Cycle the arrowhead style of the selected arrows or the active Arrow tool |
| F | Flip the bow (curve direction) of a single selected curved arrow |
| 1 to 0 | Choose the arrow type while the Arrow tool is active (1 straight, 2 double, 3 curved, 4 harpoon-up, 5 harpoon-down, 6 reaction, 7 equilibrium, 8 double-harpoon, 9 S-curve, 0 multi-segment) |
| Enter | Finish a multi-segment arrow (a double-click also finishes it) |
| Backspace or Delete | Take back the last corner of a multi-segment arrow being placed |
| Esc | Cancel a multi-segment arrow being placed, or a regular arrow being drawn |
Shape and line types
Section titled “Shape and line types”| Shortcut | Action |
|---|---|
| 1 to 6 | Choose the shape type while the Shape tool is active (1 rectangle, 2 ellipse, 3 arc, 4 square bracket, 5 curly bracket, 6 round bracket) |
| 1 to 5 | Choose the line type while the Line tool is active (1 straight, 2 curved, 3 S-curve, 4 multi-segment, 5 squiggle) |
Image crop
Section titled “Image crop”These keys work while you crop an image (to enter crop mode, double-click the image).
| Shortcut | Action |
|---|---|
| Enter | Leave crop mode and keep the crop |
| Esc | Leave crop mode; during a crop-handle drag, first undo that drag |
| Shift (drag a corner handle) | Lock the aspect ratio to the original visible proportions |
| Shift (drag any handle) | Turn off snapping to the image’s content edges |
Drawing from the keyboard
Section titled “Drawing from the keyboard”You can move around the canvas and edit it with the keyboard alone. Press Tab until the drawing canvas has focus (clicking the canvas also gives it focus). A keyboard cursor, drawn as a ring, then moves between atoms, and a screen reader announces each atom or bond.
On an empty canvas, to place the first atom at the center of the view, press an element key (C, N, O, S, P, F, or I), or Enter for carbon. To add a bonded carbon, press B, and continue from there.
| Key | Action |
|---|---|
| Arrow keys | Move the cursor to the next or previous atom |
| Alt+arrow keys | Move along the current atom’s bonds |
| Home / End | Jump to the first or last atom |
| Shift+arrow keys | Move and add each atom to the selection |
| Enter or Space | Select the atom or bond under the cursor |
| C, N, O, S, P, F, I | Set the element of the atom under the cursor |
| + or = / - | Change the charge of the atom under the cursor |
| L | Cycle the lone pairs on the atom (wraps back to none) |
| . | Cycle the radical electrons on the atom, up to 3 (wraps back to none) |
| B | Add a carbon bonded to the atom, in the widest open direction, and move the cursor to it |
| 1, 2, 3 | Set the order of the bond under the cursor (single, double, triple). A double or triple bond loses any wedge. |
| Delete | Delete the atom (with its bonds) or the bond under the cursor |
| Esc | Remove the cursor |
| ? | Have the screen reader read this key list |
Also note:
- The cursor follows the structure’s connectivity, one molecule after another.
- Backspace does not delete under the cursor; only Delete does.
- If you already have a selection and have not started the cursor, the arrow keys nudge the selection as usual. In that case, Home or End starts the cursor.
- Clicking the canvas with the mouse removes the cursor. While the pointer rests on an atom, typing relabels that atom instead (see Relabeling an atom by typing over it).
- Lone pairs, radical electrons, and bonds share the room on an atom: 4 electron domains for a period 2 element (its octet), 6 for a heavier one. When an atom has no room left, L or . changes nothing and the screen reader says so.
- The cursor never takes Ctrl+arrow keys. They keep their usual actions, such as the next or previous page.
- On a canvas that already has text or other annotations, or in animation mode, an element key does not place a first atom. It picks that element for the tools, as usual.
- ? reads the key list only while the cursor is on an atom or bond. Otherwise, it opens the Keyboard Shortcuts window.
Single-pointer editing
Section titled “Single-pointer editing”Edit > Single-Pointer Editing lets you edit without dragging. With it on, the Bond tool creates a bond when you click a start point and then a destination. The right-click menu also gains Move Selection, Rotate Selection, and Resize Selection, which work the same way: choose the item, then click to place the result. Esc cancels a click-to-place action in progress.
Animation
Section titled “Animation”| Shortcut | Action |
|---|---|
| Shift+A | Turn animation mode on or off |
| Delete or Backspace | Delete the selected animation frames, or the active state when nothing else is selected (animation mode only) |
| B | Show or hide the match badges on a LaTeX animation (animation mode only; otherwise B is the Bond tool) |
| Esc | Close the innermost open popover or badge overlay; with nothing else open, leave animation mode |
These keys work only when the document has pages (see Page setup and pages).
| Shortcut | Action |
|---|---|
| Page Down or Ctrl+Down arrow | Next page |
| Page Up or Ctrl+Up arrow | Previous page |
| Shortcut | Action |
|---|---|
| ? | Open the Keyboard Shortcuts window (while the keyboard cursor is on an atom or bond, ? reads the canvas keys instead) |
| Ctrl+Shift+L | Import LaTeX Solution (opens the LaTeX dialog ready to import a worked solution for animation) |
| F (while dragging atoms) | Flip which way a fragment folds when it is about to fuse onto another ring or bond |
Keys with more than one use
Section titled “Keys with more than one use”Some keys do different things depending on what is selected or active. The main use is listed in the sections above; this table sums up the others.
| Key | Main use | Other uses |
|---|---|---|
| H | Pan tool | Cycles the arrowhead style when arrows are selected or the Arrow tool is active |
| F | Fluorine | Flips the bow of a single selected curved arrow (does nothing for a single selected arrow with no bow); flips a fuse while you drag atoms |
| P | Phosphorus | Opens the Object Properties panel when atoms, bonds, lone pairs, radicals, or orbitals are selected, and the properties panel of a single selected arrow, shape, LaTeX equation, or image |
| B | Bond tool | Shows or hides LaTeX match badges in animation mode; adds a bonded carbon at the keyboard cursor |
| O | Oxygen | Shift+O activates the Orbital tool |
| + / = | Zoom in | Increases the charge instead when atoms are selected |
| - | Zoom out | Decreases the charge instead when atoms are selected |
| T | Text tool | Shift+T opens the template browser |
| Letters | Tool and element keys | Relabel the atom under the pointer (Select or Bond tool) |
Modifier keys during operations
Section titled “Modifier keys during operations”These modifiers change what a tool does. You hold them during a drag or click; they are not shortcuts on their own.
| Modifier | Context | Effect |
|---|---|---|
| Shift (drag) | Bond tool | Free length instead of the standard length, angle still snapped |
| Alt or Ctrl (drag) | Bond tool | Free angle instead of a snapped angle |
| Shift+Alt or Shift+Ctrl (drag) | Bond tool | Free angle and free length together |
| Shift (click) | Ring tool | Place the ring as non-aromatic |
| Shift (click or drag) | Select tool | Add to or remove from the selection, or drag out a copy of the selection |
| Alt (drag) | Select tool | Move without snapping; a dragged text box or shape also pulls free of the arrows drawn from it |
| Ctrl (drag) | Select tool | Move without snapping, keeping attached arrows attached; for atoms, turns on merging and fusing |
| Ctrl (drag) | Shape tool, Text tool | Draw a new shape or text box without snapping its corner to other items |
| Alt (click) | Select tool | Reset an arrow waypoint’s handles to smooth (collinear) |
| G (held during a drag) | Any drag, grid shown | Invert grid snapping for this drag: snaps if snapping is off, does not snap if it is on |