JSFiddle - React, Tailwind, and code Playground

by jakie8

HTML

<a class="comment-reply" href="javascript:void(0);" onclick="Comments.replyTo('moopet', '564995')">Reply</a>

JavaScript

$(".comment-reply").each(function(){
    var $link = $(this);
    var originalFunction = $link.attr('onclick');
    
    //Remove default Forrst Behavior, but we saved it above
    $link.attr({
        'onclick': ''
    });
    
    $link.live('mousedown', function(e){
        console.log(e.shifKey);
    });
    
    /*$link.bind('mousedown', function(e){
        e.preventDefault();
        var holdingShift = e.shifKey;
        console.log(holdingShift);            
        if(!holdingShift){
            eval(originalFunction);
        } else {
            var username = $link.parent().parent().find(".said a").text();
            $("#comment-content").val($("#comment-content").val()+'@'+username+' ');             
        }
    });*/
});