Re: How do you specify Enter as an accelerator for a button?
Posted by Esteban A. Maringolo-3 on Dec 02, 2005; 1:43pm
URL: https://forum.world.st/How-do-you-specify-Enter-as-an-accelerator-for-a-button-tp3376673p3376674.html
TimM escribió:
> If you create a dialog and you want to have an OK button with an
> accelerator of Enter - how do you specify this?
> I notice the OK Cancel presenter (provided in the default dialog you
> get when you create a new view) seems to have this behavior but I'm not
> sure where the code for this is located so I could have a look.
> Anyone have any tips?
Yes, set the #isDefault attribute of the push button to true.
Best regards,
--
Esteban.