daviddarnes / alembic

⚗️ A Jekyll boilerplate theme designed to be a starting point for any Jekyll website
https://alembic.darn.es
MIT License
765 stars 901 forks source link

[Enhancement] Removes deprecated keyCode & keypress usage in search #158

Closed studioromeo closed 4 years ago

studioromeo commented 4 years ago

On the search page there's usage of some keyboard events that are now deprecated and could be removed from future browsers.

The javascript is pretty much the same as before so this should be ok for people to port into their themes that used this as a boilerplate.

daviddarnes commented 4 years ago

This is great, thanks @studioromeo! Love that they, and you, changed it to something more semantic. 13 is almost arbitrary in meaning, Enter is actually readable