Plasma-mediacenter fixes for popupmenu

Last weekend I tried to grab some time for PMC(Plasma Media Center).  While browsing through mediabrowser, I came across the popup menu section. When user right clicks on the media file, popup menu comes up. All the mouse events, like clicks work properly. But one thing which missed was keyboard navigation. Initial agenda was to have Esc key work on popup menu. For this I provided a simple hack which later Shantanu asked me to get it done with pagestack. And yes implementing the same with pagestack was better solution because it does the job of view and hide (not exactly 🙂 ) respectively. So when user right clicks on media file popup menu pops up and it gets pushed into the pagestack. And when user presses Esc key or any other alternative mouse clicks on menu its popped off from the stack. So after popup menu is popped off from the stack it goes back to the previous state except for playing a song/video.

After this implementation I moved on with keyboard navigation’s like Up arrow and Down arrow key support for popup menu. I thought of implementing it in a different way. But then qml’s FocusScope really helped me. And by this now user can move up/down and move away from popup menu with Esc key. Hence the keyboard navigation, the missing factor, is now implemented and available in the master branch.

Its been long time I had blogged. Majorly because my daughter is only 8 months old and she still needs my attention 🙂

Comments (3)

SinnyDecember 6th, 2013 at 10:31 am

Thank you Sujith for your great work. Keep it up!

James CainDecember 11th, 2013 at 11:37 am

I second what Sinny said 🙂

sujithDecember 11th, 2013 at 9:47 pm

Thank Sinny and James Cain 🙂

Leave a comment

Your comment