noraesae/perfect-scrollbar — pull request #219 by MathieuLorber (2014-10-01 09:59:34+00:00)
Title: ShadowDom form elements are considered for preventing scrolling by keyevent

I recently had a problem with form elements and scrolling with keys - I couldn't have spaces in my textareas as perfect-scrollbar handled the space keydown event. I posted a message in #103 , been redirected to #123 . My problem should not have occurred...

I finally realized jquery could not identify my textarea as an input element because I use shadowdom and document.activeElement return the shadowdom element and NOT the "final" element. See : http://www.w3.org/TR/shadow-dom/#active-element .

This PR resolves the problem. I thought it deserved a comment, I made it simple as the other comments in the code are mostly short.

I'm not sure this is the only problem perfect-scrollbar could have with shadowdom. I'll come back if I discover any other one...