From: Cameron L. <cl...@la...> - 2004-04-24 12:00:17
|
> From tcl...@li... Sat Apr 24 05:58:10 2004 > . > . > . > Cameron - not sure if TkAqua does this for you (doesn't look like it), > but I think control-click is roughly equivalent to right-click from my > experience. You could do something like: > bind . <Control-Button-1> [list event generate . <Button-3>] > You might need to be a bit more clever to make sure that %x %y etc > stuff is correct in the new event. This makes me wonder though; would > it be a good rule of thumb to always bind to virtual events? That would > probably make this sort of thing much easier: > event add <<RightClick>> <Button-3> <Control-Button-1> > bind . <<RightClick>> { ... } > A related question: I have a 3-button mouse which I use with os x. > However, the right mouse button gets delivered as <Button-2> and the > middle as <Button-3>, which is different to how most apps bind to right > and middle mouse button normally. I've been told that this is just a > misconfiguration of my mouse somewhere, but I'm not so sure - the right > mouse button acts correctly in every application other than Tk-based > ones. > Anyone have any clues? If it is a misconfiguration - anyone know where > to correct it? > . > . > . It sounds as though you're saying that, yes, Mac users are accustomed to, for example, control-click for right- click, but Tk doesn't appear to implement that "out of the box"; as things stand now, we developers have to implement that for each application. |