on listitem component a rightclick event also fires a click event on safari (6.0.2 on OSX 10.7.5, zk.browser:webkit 536.26) and google chrome (24.0.1312.57, zk.browser: webkit 537.17)

asked 2013-02-01 11:25:46 +0800

alanzambello gravatar image alanzambello
0 1

updated 2013-02-01 11:26:59 +0800

I'm using zk framework and I have a strange issue on listitem with click and right click events: I'm working on OSX and the right click event also fire a click event under some conditions.

I created a testcase: in safari and chrome if you rightclick on element 2,3 you can see two popup opening, but on the same application with other browser works fine, also in google chrome running on windows platform

<window title="bug_event_chrome_osx" border="normal" height="100%" width="100%">

<popup id="left_pop">
    <label value="LEFT!"></label>

<popup id="right_pop" >
    <label value="RIGHT!" width="200px" style="background-color:red;"></label>


void left_b(){
void right_b() {

void left_p(org.zkoss.zk.ui.Component c){
void right_p(org.zkoss.zk.ui.Component c){


<vlayout id="container" hflex="1" vflex="1">
    <listbox hflex="1" vflex="1">

        label=" 1 - click and right click me! sometimes seems working fine, but often right click also fire click event, try to move messageboxes"

        label=" 2 - click and right click me! sometimes seems working fine, but often a right click also fires a click event, try to move messageboxes"

        label=" 3 - click and right click me! in chrome and safari (osx) on right click event also fires a click event"


delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2013-02-01 11:25:46 +0800

Seen: 13 times

Last updated: Feb 01 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More