diff -u b/sharethis.js b/sharethis.js --- b/sharethis.js +++ b/sharethis.js @@ -1,9 +1,9 @@ (function($) { Drupal.behaviors.sharethis = { attach: function(context) { - $('.sharethis-wrapper button').keypress(function (e) { + $('.sharethis-wrapper span').keyup(function (e) { // The enter key code (13). - if (e.which == 13) { + if (e.which == 13 || e.which == 32) { // Find innermost span var $target = $(this).children('span'); diff -u b/sharethis.module b/sharethis.module --- b/sharethis.module +++ b/sharethis.module @@ -590,6 +590,8 @@ 'st_title' => $title, 'class' => 'st_' . $display . $type, 'style' => 'background:none; border:none; padding:none;', + 'role' => 'button', + 'tabindex' => 0, ); if ($serviceCodeName == 'twitter') { if (!empty($data_options['twitter_handle'])) { @@ -604,7 +606,7 @@ // Render the span tag. $st_spans .= theme('html_tag', array( 'element' => array( - '#tag' => 'button', + '#tag' => 'span', '#attributes' => $attributes, '#value' => '', // It's an empty span tag. ),