Repeat last command not working in custom UI

I just noticed that "repeat last" (the G key) does not work withing the custom UI that I've been building. If within my UI I create a sphere, do a bevel, then try and do another bevel with "G", it will create another sphere. Object creation is registered, but poly operations cannot be repeated. Any idea why this is?