<commit_before>---
substitutions :
  leftClick : "![Left click](images/mouseLeftClick.png)"
  rightClick : "![Right click](images/mouseRightClick.png)"
  middleClick : "![Middle click](images/mouseMiddleClick.png)"
  mouseWheel : "![Mouse wheel](images/mouseWheelUpDown.png)"
  editorFocusMenu : "![Editor focus menu](images/editorFocusMenuNodeSelection.png)"
---

# Controls and Shortcuts #

The following is a list of input device controls and shortcuts for manipulating the Graph Editor, Viewer, and Python Editor.

> Tip :
> macOS users: replace <kbd>Ctrl</kbd> with <kbd>Command ⌘</kbd>.


## General ##

Action                               | Control or shortcut
-------------------------------------|--------------------
New node graph                       | {kbd}`Ctrl` + {kbd}`N`
Open node graph                      | {kbd}`Ctrl` + {kbd}`O`<commit_msg>Documentation : Add guide to how shortcuts are represented<commit_after>---
substitutions :
  leftClick : "![Left click](images/mouseLeftClick.png)"
  rightClick : "![Right click](images/mouseRightClick.png)"
  middleClick : "![Middle click](images/mouseMiddleClick.png)"
  mouseWheel : "![Mouse wheel](images/mouseWheelUpDown.png)"
  editorFocusMenu : "![Editor focus menu](images/editorFocusMenuNodeSelection.png)"
---

# Controls and Shortcuts #

The following is a list of input device controls and shortcuts providing quick access to functionality in Gaffer's Viewers and Editors.

## Guide ##

### Keyboard Shortcuts ###

Keyboard shortcuts, or hotkeys, are shown as they would typically appear on a keyboard:

Example Action                       | Shortcut
-------------------------------------|--------------------
Type the letter `g`                  | {kbd}`G`
Press a modifier key                 | {kbd}`Ctrl`
Press multiple keys together         | {kbd}`Ctrl` + {kbd}`C`
Press one of the following keys      | {kbd}`A`, {kbd}`B`, {kbd}`C`, {kbd}`D`
Press either of the following keys   | {kbd}`Enter`<br>or<br>{kbd}`Return`

> Tip :
> macOS users: replace <kbd>Ctrl</kbd> with <kbd>Command ⌘</kbd>.

### Mouse Controls ###

Mouse controls are shown as icons representing the action to perform:

Example Action                       | Mouse control
-------------------------------------|--------------------
Press the left mouse button          | {{leftClick}}
Press the middle mouse button        | {{middleClick}}
Press the right mouse button         | {{rightClick}}
Scroll the mouse wheel               | {{mouseWheel}}

## General ##

Action                               | Control or shortcut
-------------------------------------|--------------------
New node graph                       | {kbd}`Ctrl` + {kbd}`N`
Open node graph                      | {kbd}`Ctrl` + {kbd}`O`
{'fraction_non_alphanumeric': 0.19622778382299602, 'fraction_numerical': 0.0, 'mean_word_length': 2.166475315729047, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1784286', 'n_tokens_mistral': 756, 'n_tokens_neox': 740, 'n_words': 228}