added left & right click support for battery panel

(cherry picked from commit c78732c46a058a39cc4264505f63c2317d3e5e5d)