Refactor: Fix doc comments

This commit is contained in:
Azzurite 2022-06-19 01:13:45 +02:00
parent 197241b2e0
commit 672b804ac5

View File

@ -110,7 +110,7 @@ open class Popup(
} }
/** /**
* Adds a [TextButton] and ends the current row. * Adds a [TextButton].
* @param text The button's caption. * @param text The button's caption.
* @param key Associate a key with this button's action. * @param key Associate a key with this button's action.
* @param action A lambda to be executed when the button is clicked. * @param action A lambda to be executed when the button is clicked.
@ -122,7 +122,6 @@ open class Popup(
button.keyShortcuts.add(key) button.keyShortcuts.add(key)
return add(button) return add(button)
} }
/** @link [addButton] */
fun addButton(text: String, key: Char, style: TextButtonStyle? = null, action: () -> Unit) fun addButton(text: String, key: Char, style: TextButtonStyle? = null, action: () -> Unit)
= addButton(text, KeyCharAndCode(key), style, action).apply { row() } = addButton(text, KeyCharAndCode(key), style, action).apply { row() }
fun addButton(text: String, key: Int, style: TextButtonStyle? = null, action: () -> Unit) fun addButton(text: String, key: Int, style: TextButtonStyle? = null, action: () -> Unit)