setAccelerator

abstract fun setAccelerator(command_id: Int, key_code: Int, shift_pressed: Boolean, ctrl_pressed: Boolean, alt_pressed: Boolean): Boolean

Set the keyboard accelerator for the specified |command_id|. |key_code| can be any key or character value. Returns true on success.