Skip to content

Keyboard and mouse

Every key and gesture la-gram responds to, by where it works. On a Mac, ⌘ (Command) takes the place of Ctrl and ⌥ (Option) the place of Alt. The tabs below show both; the choice of tab is kept across the page.

The toolbar's undo and redo buttons say Undo (Ctrl+Z) and Redo (Ctrl+Y) on every platform. On a Mac the keys are Cmd+Z and Cmd+Y (or Shift+Cmd+Z), as below; the canvas takes the Ctrl forms there too.

The examples use the example model: open it in a second tab.

Files

These work anywhere in la-gram, except under a dialog, in place of the browser's own Open and Save page. A field you are typing in is left first, so what it holds is saved.

Keys Does
Ctrl+O File › Open…: open a model file
Ctrl+S File › Save: save the model as TriG
Keys Does
Cmd+O File › Open…: open a model file
Cmd+S File › Save: save the model as TriG
  1. Change the model: the ● after its name says it has unsaved changes.
  2. Press Ctrl+S (Cmd+S on a Mac): Acme-online-shop.trig is saved, and the ● goes.

On the canvas

The canvas takes these keys when it has the focus: click an empty part of it first.

Keys Does
Ctrl+Z undo the last change on the canvas or in the property panel
Ctrl+Y or Ctrl+Shift+Z redo
Del or Backspace delete the selection from the view; the model keeps it
Ctrl+C copy the selection
Ctrl+X cut the selection: copy it, and delete it from the view
Ctrl+V paste: the same elements into another view of the model; copies into this view or another model
Ctrl+Shift+V paste as copies
Ctrl+Alt+V paste as references: the same elements, placed again
Ctrl+D duplicate the selection, as copies
Ctrl+Shift+] / Ctrl+] bring the selection to the front / one step forward
Ctrl+[ / Ctrl+Shift+[ send the selection one step backward / to the back
F2 rename the one selected element, relationship or figure — on a view reference, its view
Ctrl++ / Ctrl+- zoom in / out one step
Ctrl+0 zoom to 100 %
Esc put the format painter down; cancel a connection, lasso or move in progress
Enter / Esc while renaming keep the new name / keep the old one
Keys Does
Cmd+Z (or Ctrl+Z) undo the last change on the canvas or in the property panel
Cmd+Y or Shift+Cmd+Z (or the Ctrl forms) redo
Del or Backspace delete the selection from the view; the model keeps it
Cmd+C copy the selection
Cmd+X cut the selection: copy it, and delete it from the view
Cmd+V paste: the same elements into another view of the model; copies into this view or another model
Shift+Cmd+V paste as copies
Alt+Cmd+V paste as references: the same elements, placed again
Cmd+D duplicate the selection, as copies
Shift+Cmd+] / Cmd+] bring the selection to the front / one step forward
Cmd+[ / Shift+Cmd+[ send the selection one step backward / to the back
F2 rename the one selected element, relationship or figure — on a view reference, its view
Cmd++ / Cmd+- (or the Ctrl forms) zoom in / out one step
Cmd+0 (or Ctrl+0) zoom to 100 %
Esc put the format painter down; cancel a connection, lasso or move in progress
Enter / Esc while renaming keep the new name / keep the old one
  • Undo covers what you change in this view: placing, moving, connecting, renaming, deleting from the view, and property edits. Its history belongs to the open view and starts again when another view opens. Changes that come from elsewhere (a collaborator, an import, a deletion from the model tree of a concept not on the canvas) are not undone from here; see Undo.
  • F2 acts on one selected element, relationship or figure only, and not while the focus is in a text field. On a view reference it renames the view, every reference to it with it; the reference's own text is its Text in the Properties tab. Clicking elsewhere while renaming keeps the new name, as Enter does.
  • Delete never deletes from the model: Delete from model (all views) on the context pad or the right-click menu does, after asking.
  • Drawing order — Cmd+[ and Cmd+] are the browser's back and forward on a Mac; while the canvas has the focus, they change what is drawn above what instead: Order.
  • Copy and paste — what each pastes, and where: Copy and paste. The keys copy the diagram's selection unless a text field has the focus or text is selected on the page, which they copy as usual.

With the example model:

  1. Click Gift wrapping on the canvas, press F2, type "Gift wrap" and press Enter.
  2. Press Ctrl+Z (Cmd+Z on a Mac): the name is "Gift wrapping" again.
  3. Press Ctrl+Y (Cmd+Y): "Gift wrap" again. Press Ctrl+Z once more to leave it as it was.
  4. Press Ctrl+- twice, then Ctrl+0: back at 100 %.

Views

Keys Does
Alt+Left / Alt+Right open the view before / after, in the order you opened them
Keys Does
Option+Left / Option+Right open the view before / after, in the order you opened them

They work anywhere but in a text field, where they move the cursor by a word, and not while a dialog is open. The toolbar's ← and → buttons do the same, and their tooltips name the view they go to. With the canvas split, they go back and forward in the pane in use; with the divider between the panes focused, the arrow keys move it by 5 % (Two views at once).

  1. In the model tree, double-click Who is who: the catalog view opens.
  2. Press Alt+Left (Option+Left): How the shop serves its customers is open again.
  3. Press Alt+Right (Option+Right): Who is who.
Keys Where Does
Ctrl+F anywhere, with a diagram open opens the diagram's search
Ctrl+F in the RDF panel opens its search
Ctrl+F in the model tree puts the cursor in its filter
Enter / Shift+Enter in a find bar the next match / the previous
Esc in a find bar closes it
Keys Where Does
Cmd+F anywhere, with a diagram open opens the diagram's search
Cmd+F in the RDF panel opens its search
Cmd+F in the model tree puts the cursor in its filter
Enter / Shift+Enter in a find bar the next match / the previous
Esc in a find bar closes it

It goes by where you are: where the keyboard is, or else where you last clicked — the RDF panel's text and the tree's rows take no keyboard focus. In the SPARQL editor, with a catalog or a matrix open, and while a dialog is open, the browser's own find works as usual.

  1. Click the empty canvas and press Ctrl+F (Cmd+F): the diagram's find bar opens.
  2. Click a block of statements in the RDF panel and press it again: the panel's own opens.

SPARQL editor

Keys Does
Ctrl+Enter run the query
Keys Does
Cmd+Enter or Ctrl+Enter run the query

In the Questions menu, Up and Down move between the questions and Esc closes it.

  1. Open the SPARQL Query tab and click in the editor.
  2. Press Ctrl+Enter (Cmd+Enter): the results are under the editor.

Model tree

Keys Does
Ctrl + click add a row to the selection, or take it out
Shift + click select every row from the last one clicked to this one
Ctrl+C copy the selected elements and relationships, to paste into a diagram
Esc while dragging rows cancel the drag
Keys Does
Cmd + click add a row to the selection, or take it out
Shift + click select every row from the last one clicked to this one
Cmd+C copy the selected elements and relationships, to paste into a diagram
Esc while dragging rows cancel the drag

Several rows are selected to move them to a folder together, with Move … to folder… or by dragging. Views, elements, relationships and folders can be selected so; the model's own row and the group headings cannot.

  1. In the model tree, click Payments, then Ctrl-click (Cmd-click) Web shop: both are selected.
  2. Shift-click Customer: every element row from Web shop to Customer is selected.

Panels

Keys and gestures Does
Esc restore the bottom panel or the RDF panel when it is maximized, unless a dialog or a menu is open
double-click the empty part of the bottom tab strip maximize the bottom panel over the workspace, or restore it
click the open bottom tab fold the panel down to its tabs, or unfold it
drag a panel's edge resize it; the size is remembered (stored data)

The ⤢ button at the right of the tab strip maximizes and restores too; its tooltip says Restore the panel (Esc) while the panel is maximized.

  1. Double-click the empty strip to the right of the History tab: the bottom panel covers the workspace.
  2. Press Esc: it is back at its size.

Dialogs and lists

Keys Where Does
Enter any dialog the dialog's main button (Apply, Create, Save…), unless the focus is in a text area, where it starts a new line. A dialog whose fields have a problem stays open and says which
Esc any dialog cancel: close it and change nothing. A click outside the dialog does the same
Up / Down File › Settings… move to the tab above or below
Up / Down, Enter, Esc a picker's list, such as the property panel's Type move through the list, take the highlighted entry, close the list
Up / Down the property panel's tabs move to the tab above or below
Enter / Esc a catalog view's cell, while editing it keep the value / drop it
  1. Choose File › Settings…, and press Down while a tab has the focus: the next tab opens.
  2. Press Esc: the dialog closes and nothing changes.

Typing in fields

Keys typed in a panel's field (the property panel, the palette's search, the SPARQL editor, the tree's filter) never reach the canvas, combinations with Ctrl or ⌘ included. Ctrl+Z in the Name field undoes your typing there, and Backspace deletes a character, not the selected element.

  1. Select Web shop, and in the property panel's Name field, type "s".
  2. Press Backspace: the "s" goes, and Web shop stays on the canvas.

Mouse

Gesture Does
click select an element or a relationship
Shift + click add to the selection, or take from it
Shift + drag on the canvas select with a lasso
drag on an empty part of the canvas move around the diagram
double-click rename what is under the pointer; a view reference: open the view it references
right-click the right-click menu of what is under the pointer, or of the canvas
scroll scroll up and down
Shift + scroll scroll sideways
Ctrl + scroll, or a trackpad's pinch zoom in or out
Gesture Does
click select an element or a relationship
Shift + click add to the selection, or take from it
Shift + drag on the canvas select with a lasso
drag on an empty part of the canvas move around the diagram
double-click rename what is under the pointer; a view reference: open the view it references
right-click, or Ctrl + click the right-click menu of what is under the pointer, or of the canvas
scroll scroll up and down
Shift + scroll scroll sideways
Cmd + scroll (or Ctrl + scroll), or a trackpad's pinch zoom in or out

The canvas toolbar's tools do the same by a click: the lasso and the hand, and the connect tool.

  1. Shift-drag around Customer and Place order: both are selected.
  2. Drag on an empty part of the canvas: the diagram moves with the pointer.

Graph tab

The same on every platform:

Gesture Does
click an element or a line select that element or relationship, on the canvas and in the Properties tab
double-click an element make it the element in the middle, and select it
drag an element move it; with Layout Force, the elements linked to it follow, and when you let go it settles back among them. The element in the middle stays where you drop it, and the graph follows it
drag the background move the graph
scroll, or a trackpad's pinch zoom in or out

Once you have clicked, dragged or scrolled in the drawing, the view stays where you put it until you choose another element, depth, filter or layout, change the Forces, or choose Fit. More on each gesture in Relationship graph › Navigate.

  1. Select Web shop and open the Graph tab.
  2. Drag Card payment away from Web shop: Payments, linked to it, follows. Let go: Card payment settles back.
  3. Double-click Card payment: the graph is drawn round it, and framed when it comes to rest.

The Keyboard shortcuts dialog

Keyboard shortcuts, in la-gram's menu (the icon and name at the top left), lists the common keys and gestures, by where they work. On a Mac it writes them ⌘Z, ⇧⌘Z, ⌥←; elsewhere Ctrl+Z, Ctrl+Shift+Z, Alt+←.

It leaves out a few that this page has: Esc to restore a maximized panel, the double-click on the tab strip, Enter and Esc while renaming, Esc to cancel a tree drag, the keys of the catalog cells and the Questions menu, and the Graph tab's gestures.

  1. Open la-gram's menu, at the top left.
  2. Choose Keyboard shortcuts: the list opens in a dialog. Press Esc to close it.