{"comment":{"created_at":"2011-10-10T20:55:32Z","body":"This should be fixed, complete with tests, as of 287b929b29cbb8c748a8a3243a2.","updated_at":"2011-10-10T20:55:32Z","url":"https://api.github.com/repos/rails/jquery-ujs/issues/comments/2352099","id":2352099,"user":{"avatar_url":"https://secure.gravatar.com/avatar/ca46a3d7ca39aae7b2b27526d0ad64f0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/JangoSteve","id":93607,"login":"JangoSteve"}},"action":"created","issue":{"number":204,"created_at":"2011-09-13T18:49:18Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hello, \r\n\r\nAs many of you I guess, I like to Ctrl+Click to open pages in another tab. Because of the click handler on remote link this does not work. \r\n\r\nFor now, I'm trying to edit the live(\"click.rails\") function with this one : \r\n\r\n  $(rails.linkClickSelector).live('click.rails', function(e) {\r\n    var link = $(this);\r\n    if (!rails.allowAction(link)) return rails.stopEverything(e);\r\n\r\n    if (link.data('remote') !== undefined) {\r\n      if (e.which == 2 || e.metaKey || e.ctrlKey){\r\n        return true\r\n      } else {\r\n        rails.handleRemote(link);\r\n        return false;\r\n      }\r\n    } else if (link.data('method')) {\r\n      rails.handleMethod(link);\r\n      return false;\r\n    }\r\n  });\r\n\r\nBut I haven't tested it properly yet.\r\nAny thoughts ?","comments":7,"title":"Ctrl click should work","updated_at":"2011-10-10T20:55:32Z","url":"https://api.github.com/repos/rails/jquery-ujs/issues/204","id":1636830,"assignee":null,"milestone":null,"closed_at":"2011-10-10T20:55:32Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/d789c0fc43bff375a3958c8d509a5f02?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/rnaud","id":102660,"login":"rnaud"},"html_url":"https://github.com/rails/jquery-ujs/issues/204","labels":[],"state":"closed"},"legacy":{"issue_id":1636830,"comment_id":2352099}}