As always Joeel , add a snippet of code !

I had this problem too (for example one can't make a button default and Enable cancel(ESC) on it the same time !)
_________________________