I think the issue is with the user Focus. As soon as i am able, i will try what you guys suggested and see how it goes. Thanks.
EDIT : So it turns out, it was a Focus issue. All i had to do was set focus to the Popup widget and this fixed my issue. Thanks again.