add

inline fun <A : KeybindAbility> KeyBinding.add(vararg constructorParams: Pair<KProperty1<A, *>, *>, noinline configure: A.() -> Unit = {})

Adds a keybinding bound ability that is granted with this origin.

Receiver

The keybinding to bind the ability to.

Parameters

A

The type of ability to add.

configure

A builder function to configure the ability on creation.