diff --git a/client/js/userlist.js b/client/js/userlist.js index 9b646565..c4068d10 100644 --- a/client/js/userlist.js +++ b/client/js/userlist.js @@ -103,7 +103,11 @@ exports.handleKeybinds = function(input) { const user = input.closest(".users").find(".user.active"); if (user.length) { - user.click(); + const clickEvent = new $.Event("click"); + const userOffset = user.offset(); + clickEvent.pageX = userOffset.left; + clickEvent.pageY = userOffset.top + user.height(); + user.trigger(clickEvent); } }); };