fix button event handling

Resolves-bug: https://github.com/sebhtml/Ray-Cloud-Browser/issues/20
Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>