Keyboard shortcuts
Klive’s stepping, reverse-stepping, navigation, full-screen and recording shortcuts can be changed. This page lists their defaults on each platform and shows how to give an action another key.
The shortcuts you can change
| Action | Setting | macOS | Windows | Linux |
|---|---|---|---|---|
| Step Into | shortcuts.stepInto | F12 | F11 | F11 |
| Step Over | shortcuts.stepOver | F10 | F10 | F10 |
| Step Out | shortcuts.stepOut | Shift+F12 | Shift+F11 | Shift+F11 |
| Step Over Line | shortcuts.stepOverLine | Shift+F10 | Shift+F10 | Shift+F10 |
| Step Back | shortcuts.stepBack | Option+F12 | Alt+F11 | Ctrl+Alt+F11 |
| Step Forward | shortcuts.stepForward | Option+Shift+F10 | Alt+Shift+F10 | Ctrl+Alt+Shift+F10 |
| Reverse Step Over | shortcuts.stepBackOver | Option+F10 | Alt+F10 | Ctrl+Alt+F10 |
| Reverse Step Out | shortcuts.stepBackOut | Option+Shift+F12 | Alt+Shift+F11 | Ctrl+Alt+Shift+F11 |
| Reverse Continue | shortcuts.reverseContinue | Option+F5 | Alt+F5 | Ctrl+Alt+F5 |
| Go Back | shortcuts.navigateBack | Control+- | Alt+← | Alt+← |
| Go Forward | shortcuts.navigateForward | Control+Shift+- | Alt+→ | Alt+→ |
| Toggle Full Screen | shortcuts.fullScreen | Control+Shift+F9 | Ctrl+Shift+F9 | Ctrl+Shift+F9 |
| Start/stop IDE + Emulator recording | shortcuts.recordIdeEmu | Control+Shift+F7 | Ctrl+Shift+F7 | Ctrl+Shift+F7 |
Step Into is F12 on macOS because the system uses F11 for Show Desktop. On Linux the reverse-stepping keys add Ctrl, because GNOME uses Alt with several function keys for window actions. The menus show the keys in effect. Toggle Full Screen turns the emulator window’s full screen mode on and off; in the IDE window it only fills the screen.
Change a shortcut
Open the command prompt
In the IDE window, open the Command pane. See The command prompt.
Set the key
Run set -u with the setting from the table and the new key:
set -u shortcuts.stepInto "F7"The -u option stores it in your user settings, so it applies to every project.
Restart Klive
The menus may pick the key up at once, but restart Klive to be sure it is used everywhere.
To return to the default, run the same command without a key:
set -u shortcuts.stepIntoHow to write a key
A key is written as modifiers and a key joined with +, for example "Alt+F7" or
"CmdOrCtrl+Shift+R". Case does not matter.
| Modifier | Windows and Linux | macOS |
|---|---|---|
CmdOrCtrl | Ctrl | Cmd |
Ctrl | Ctrl | Control |
Cmd | – | Cmd |
Alt, Option | Alt | Option |
Shift | Shift | Shift |
Keys are the letters A–Z, the digits 0–9, the function keys F1–F24, Enter,
Backspace, Delete, Esc, Tab, Space, Up, Down, Left, Right, and punctuation such
as -.
The code editor gives way to the stepping keys: when one of them is also an editor key, the stepping action wins. Your operating system may still take a key for itself, and then its own action wins.
Fixed shortcuts
These keys cannot be changed:
| Action | macOS | Windows and Linux |
|---|---|---|
| Start or continue (Machine › Start) | F5 | F5 |
| Start with Debugging | Ctrl+F5 | Ctrl+F5 |
| Pause | Shift+F5 | Shift+F5 |
| Stop, Restart | F4, Shift+F4 | F4, Shift+F4 |
| Select machine… | Cmd+Shift+M | Ctrl+Shift+M |
| Quick Save State, Quick Restore State | Cmd+Option+S, Cmd+Option+L | Ctrl+Alt+S, Ctrl+Alt+L |
| Settings…, Open File… | Cmd+,, Cmd+O | – |
| Capture or release the mouse (ZX Spectrum Next) | Cmd+M | Ctrl+M |