What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 129 Stack Exchange communities.

This is a very minor annoyance but an annoyance nevertheless. If I start editing any post on Stack Overflow, there is a "cancel" link next to "Save Edits". Clicking it works just fine. However, tabbing to it and pressing Enter doesn't trigger it (interestingly, it works correctly on Meta). Which is strange given that Stack Overflow seems to be using jQuery.click() to attach the event handler to this link. My browser is Firefox 8 on Windows 7. Also verified the issue in Firefox 11.0a1 with a different profile and Chrome 16 so it isn't a configuration problem.

I tried reproducing with this code:

<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
  $(document).ready(function()
  {
    $("a").click(function()
    {
      alert("click");
    });
  });
</script>
<a href="#">test</a>

But my link can be triggered both with mouse clicks and Enter.

Edit: I realize that pressing Esc will have the desired effect. But sometimes tabbing to the actual control comes more natural.

share|improve this question
2  
Using the Esc key has always been the natural way to me. –  BoltClock's a Unicorn Nov 24 '11 at 13:05

1 Answer 1

up vote 4 down vote accepted

This will be fixed in the next build. No need to thank us for this super-speedy fix!

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .