PDA

View Full Version : Go back one page when use right clicks



mridang
August 17th, 2009, 12:34 AM
Hi guys,

I'm writing my first Boxee python application. When the app stars, i've got a big list control which displays the items. When the user clicks one of the items, i hide the list and populate and display the next one. This part works just fine but while navigating around the second list, if the user right clicks, he doesn't go back to the previous list, instead, he exits the application. Is there any way to handle this in code? It's a Boxee Python Application and not RSS or anything such.

Any help?

Thanks everyone,

DPK
August 17th, 2009, 01:32 AM
You might try using PushState():

Saves the state of the window and pushes it to the top of the window state stack. By default, if user hits ESC or Back, instead of closing the window, it will pop the state and return it. The state includes contents of lists and the selected items in lists. This is useful if you want to support “drill down” navigation in a window.