ipeychev/liferay-portal — pull request #335 by pat270 (2013-10-05 16:10:52+00:00)
Title: LPS-30425 - Dockbar should be useable with only the arrow keys

https://issues.liferay.com/browse/LPS-30425

Hey Iliyan,

This should fix the keyboard not working when staging is active. I moved the methods to a module called liferay-dockbar-keyboard-interaction and made the source formatting changes you wanted.

The refocus was a work around for lazy loading the dockbar javascript. I removed the public function and just included it when the focus event is fired. The focusmanager doesn't work unless it is attached before the focus event. I tried to find a better way to around it, but this was the best solution I could come up with. Let me know if you know something better.

I couldn't figure out a way to calculate which li element was a dockbar menu item, so I had to add class lfr-parent-menu-item to each menu item in the dockbar to distinguish that.

Focus styles were missing from the drop down menus and was making the style look weird on focus. I added the focus styles to custom_common.css and dockbar.css. I also removed the mspointer stuff.

Thanks,
Patrick