Keyboard

dosbox-automation captures your keyboard input and passes it straight to the emulated DOS environment - most keys just work without any fuss.

The one wrinkle is that your host operating system intercepts certain key combinations (Alt+Tab , Cmd+H , etc.) before DOSBox ever sees them. The keyboard_capture setting lets you override this, so DOSBox gets first dibs on those keys. This is especially useful in fullscreen mode or when a game relies on key combinations that collide with OS shortcuts.

All key bindings can be customized through the key mapper (Ctrl+F1 on Windows/Linux, Cmd+F1 on macOS). See Keyboard shortcuts below for the full list of default bindings.

Configuration settings

The keyboard capture setting is configured in the [sdl] configuration section.

keyboard_layout

See keyboard_layout.

keyboard_capture

Capture system keyboard shortcuts. When enabled, most system shortcuts are captured and sent to dosbox-automation instead of being intercepted by the host OS. Examples of captured shortcuts:

  • Alt+Tab (task switching on all platforms)
  • Ctrl+Esc (Start menu on Windows)
  • Ctrl+F4 (virtual desktop switching on KDE)
  • Ctrl+Left (show desktop on macOS)

This is particularly useful for Windows 3.1 and DOS programs that use key combinations which conflict with your OS shortcuts.

Possible values: on, off (default)

Keyboard shortcuts

dosbox-automation has two layers of key bindings: shortcuts that control the emulator itself (fullscreen toggle, screenshots, CPU speed, etc.) and DOS key mappings that pass keyboard input through to the emulated DOS environment.

All bindings can be customized in the key mapper, accessible via Ctrl+F1 on Windows/Linux or Cmd+F1 on macOS. Shortcuts use a "primary modifier" key: Ctrl on Windows and Linux, Cmd on macOS.

Default shortcuts

General

Windows / LinuxmacOSAction
Alt+Enter Alt+Enter Toggle fullscreen
Alt+Pause Cmd+P Pause emulation
Ctrl+F1 Cmd+F1 Open key mapper
Ctrl+F4 Cmd+F4 Swap mounted disk image
Alt+F12 Alt+F12 Toggle turbo speed
Ctrl+Alt+Home Cmd+Ctrl+Home Restart DOSBox
Ctrl+F9 Cmd+F9 Shut down DOSBox

CPU

Windows / LinuxmacOSAction
Ctrl+F11 Cmd+F11 Decrease CPU cycles
Ctrl+F12 Cmd+F12 Increase CPU cycles

Audio

Windows / LinuxmacOSAction
Ctrl+F8 Cmd+F8 Mute audio

Capture

Windows / LinuxmacOSAction
Ctrl+F5 Cmd+F5 Take screenshot (default format)
Alt+F5 Alt+F5 Take rendered screenshot
Ctrl+F6 Cmd+F6 Start/stop audio recording
Ctrl+Alt+F6 Cmd+Alt+F6 Start/stop MIDI recording
Ctrl+F7 Cmd+F7 Start/stop video recording

Display

Windows / LinuxmacOSAction
Ctrl+F2 Cmd+F2 Reload current shader

Input

Windows / LinuxmacOSAction
Ctrl+F10 Cmd+F10 Toggle mouse capture

Joystick calibration

These shortcuts are only active when use_joy_calibration_hotkeys is enabled in the joystick settings.

Windows / LinuxmacOSAction
Ctrl+Left Cmd+Left X scalar left
Ctrl+Right Cmd+Right X scalar right
Alt+Left Alt+Left X offset left
Alt+Right Alt+Right X offset right
Ctrl+Delete Cmd+Delete Reset X calibration
Ctrl+Up Cmd+Up Y scalar up
Ctrl+Down Cmd+Down Y scalar down
Alt+Up Alt+Up Y offset up
Alt+Down Alt+Down Y offset down
Ctrl+Home Cmd+Home Reset Y calibration

Video adapter-specific

These shortcuts are only available when emulating specific machine types.

ShortcutMachine typeAction
F11 herculesCycle Hercules palette
F11 cga_monoCycle mono CGA palette
F12 cga / pcjr / tandyToggle composite mode
F10 cga / pcjr / tandySelect composite adjustment knob
F11 cga / pcjr / tandyIncrease composite adjustment
Alt+F11 cga / pcjr / tandyDecrease composite adjustment

Image adjustments

WindowsmacOSAction
Win+Alt+F9 Cmd+Alt+F9 Previous image adjustment setting
Win+Alt+F10 Cmd+Alt+F10 Next image adjustment setting
Win+Alt+F11 Cmd+Alt+F11 Decrease current setting
Win+Alt+F12 Cmd+Alt+F12 Increase current setting
LinuxAction
Meta+Alt+F9 Previous image adjustment setting
Meta+Alt+F10 Next image adjustment setting
Meta+Alt+F11 Decrease current setting
Meta+Alt+F12 Increase current setting