Right click enter problem

I installed the latest version of Draftsight in my Ubuntu 12.04. I set the right mouse button to click enter and it worked well. After that I tried to change the aliases with some problems, so I opted to create a new xml file with my command.

The problem comes when I try to use aliases in combination with the right mouse button. If I press F and the enter key on my keyboard executes the LINE command and F appears in the command window. If I do the same by writing F and clicking the right mouse button, the command is duplicated and appears FF. The same if I write XC for example, if I press enter on the keyboard write XC in the command window but with the right mouse button, write XCXC.

If it helps, I've noticed that in the TOOLS menu have twice the option Mouse Gestures.

 

Thanks in advance.

 

PD: Excuse for my english :(