ShortcutSettings

data class ShortcutSettings(val keyboardShortcutOverrides: MutableMap<String, KeyboardShortcutOverride> = mutableMapOf()) : Settings

The Settings for KeyboardShortcuts.

Author

Richard Arriaga

Constructors

Link copied to clipboard
constructor(keyboardShortcutOverrides: MutableMap<String, KeyboardShortcutOverride> = mutableMapOf())

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The associated SettingsType. This is expected to be the companion object of the implemented subtype.

Link copied to clipboard
open override val writeSettingsAction: JSONWriter.() -> Unit

The JSONWriter action that writes the data contained in these Settings to the JSONWriter.

Functions

Link copied to clipboard
Link copied to clipboard

Attempt to import the provided ShortcutSettings into keyboardShortcutOverrides only adding the ShortcutSettings.keyboardShortcutOverrides that do not conflict with any other shortcuts.

Link copied to clipboard
fun save()

Save to the environment settings directory in the keyBindingsOverrideFile.

Link copied to clipboard
fun saveToDisk(file: File)

Save this ShortcutSettings to the provided file.

Link copied to clipboard
override fun writeTo(writer: JSONWriter)