ShortcutSettings

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

The Settings for KeyboardShortcuts.

Author

Richard Arriaga

Constructors

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

Types

Link copied to clipboard
object Companion : SettingsType<ShortcutSettings>

Functions

Link copied to clipboard
fun applyOverrides()
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)

Properties

Link copied to clipboard
open val jsonFormattedString: String
Link copied to clipboard
open val jsonPrettyPrintedFormattedString: String
Link copied to clipboard

The map of KeyboardShortcutOverride.actionMapKey to KeyboardShortcutOverride that override the default key combinations for the listed KeyboardShortcuts.

Link copied to clipboard
val type: SettingsType<*>

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.