Posts: 21
Threads: 8
Joined: Dec 2015
Reputation:
0
How to make the enter key be equal to pressing a button in a dialog?
Posts: 249
Threads: 26
Joined: Jan 2011
Reputation:
0
Enter equals selecting a dialog button already. (Atleast for DIALOG_STYLE_LIST)
Posts: 21
Threads: 8
Joined: Dec 2015
Reputation:
0
Can I set it to be that specific dialog button? Because there's other buttons that preceed the dialog button where my dialog shows up (the spawn button).
Posts: 319
Threads: 7
Joined: Jul 2012
Reputation:
0
Dialogs can have up to 2 buttons, where the left one is linked to the ENTER key and the right one is linked to the ESCAPE key, you can't change that.
Whatever text you put onto those buttons is up to you however.
Usually the left button has "SELECT", "OK", "YES" or something like that and the right usually has something like "CANCEL", "BACK", "EXIT" or "NO".