I made a screen for inputting the mcs name with a Random button.
Usual behavior is, the button is activated when it's focused(eg the mouse is above it) and you press enter.
I'd like the button to only react on clicks, and enter always confirming the input.
I tried something like this:
Code: Select all
$ config.keymap["button_select"].remove('K_RETURN')
$ config.keymap["button_select"].remove('K_KP_ENTER')
call choose_first_name
call choose_last_name
$ config.keymap["button_select"].append('K_RETURN')
$ config.keymap["button_select"].append('K_KP_ENTER')
I found the "keymap" property on buttons in the wiki, but looks like that isn't working anymore.
Any ideas?
Am I missing something?