if (event.ctrlKey || (event.modifiers && event.modifiers |
Event.CTRL_MASK != 0))
That second part is probably about modifiers is probably NS4
specific. Might not even work right there, been a while.
Corey
On Nov 8, 2006, at 9:27 AM, iBspoof wrote:
>
> I have a set of rows that are currently adding a class "selected"
> and firing
> an ajax call to show information selected in another div if a
> subclass of
> "caller" is clicked. To make sure only one row is selected, I am
> removing
> the "selected" class for all rows before adding the class.
>
> Everything works perfected except now I want to allow for multiple
> rows to
> have the "selected" class and not to fire the ajax calls if the
> control key
> is pressed. This will allow me to run an ajax call on multiple
> rows much
> like the selectors plugin.
>
> Any help would be appreciated. - Brad
>
>
> Code:
>
> $(".row .caller").click(function(){
>
> // add a if control keydown = true do the following:
>
> $.ajax({
> type: "POST",
> url: "?",
> data: "task=viewmail&msg_id=" + this.parentNode.id,
> success: function(msg){
> $("#message_view").show().html(msg);
> }
> });
>
> if ($(".row") != this.parentNode) {
> $(this.parentNode).removeClass("unread");
> $(".row").removeClass("selected");
> }
>
> // end if keydown statement
>
> $(this.parentNode).addClass("selected");
> });
>
>
> --
> View this message in context: http://www.nabble.com/Keydown-Help-
> tf2596613.html#a7242876
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/