woocommerce/assets
Rodrigo Primo 5c8491c862 Remove jQuery code that does nothing
This commit replaces a block of jQuery code that I believe does nothing. I found it while starting the work to make our JS code compatible with jQuery 3 as it uses jQuery.fn.keyup() which has been deprecated.

As far as I can understand, this block of code is supposed to change the focus to the coupon description when the user hits the tab key while the focus is on the title field. It doesn't work because the keyup event is not fired for the tab key. The current behavior is that when the user hits the tab key, the focus changes to the "Generate coupon code" button, and if the tab key is pressed another time, the focus changes to the description text field. Which seems fine to me and that is why I'm suggesting we remove this code instead of fixing it.

I believe it was added in this c15b8e817c commit six years ago and unfortunatelly the commit doesn't provide much information on why it was added.
2020-11-17 14:39:55 -03:00
..
css Merge pull request #28229 from woocommerce/add/wc-pay-extensions-screen 2020-11-12 14:21:01 -08:00
fonts images, svgs optim 2018-10-04 11:57:05 +02:00
images Add wc payments to extensions addons page. 2020-11-09 14:19:11 +02:00
js Remove jQuery code that does nothing 2020-11-17 14:39:55 -03:00