updateFrom

fun updateFrom(keyStroke: KeyStroke): Boolean

Update this KeyboardShortcut to match the ModifierKeys and KeyCode used in the provided KeyStroke.

Return

true if the update was successfully completed; false if the KeyStroke.keyCode is not a recognized KeyCode.

Parameters

keyStroke

The KeyStroke to use to update this KeyboardShortcut.