Hi

I have a suggestion to make for the interface elements plugin. I hope it
is ok to post it here, since the interface elements website does not
have a forum on its own (yet).

Selections can be done with CTRL-click, but CTRL-click on the Mac
simulates the right mouse button. So whenever I do a CTRL-click in my
browser, I'm getting the context menu. Mac users use the "command" key
(the "apple" button) to make selections so I thought I might add this to
the code (see attached diff).

Daniel
--- iselect.js-dist.js  2006-09-26 17:31:30.000000000 +0200
+++ iselect.js  2007-01-04 11:57:28.000000000 +0100
@@ -21,7 +21,8 @@
        } else {
                code = e.which;
        }
-       if (code == 17) {
+       // CTRL or Command-Key (Mac)
+       if (code == 17 || code == 224) {
                jQuery.selectKeyHelper = true;
        }
 };
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to