diff -u b/sharethis.js b/sharethis.js --- b/sharethis.js +++ b/sharethis.js @@ -4,10 +4,18 @@ $('.sharethis-wrapper button').keypress(function (e) { // The enter key code (13). if (e.which == 13) { - var button = $(this).find('.stMainServices')[0]; + + // Find innermost span + var $target = $(this).children('span'); + while ($target.length) { + $target = $target.children('span'); + } + var button = $target.end()[0]; + if (typeof button !== 'undefined') { button.click(); } + return false; } });