adobe/brackets — pull request #2217 by njx (2012-11-27 02:06:52+00:00)
Title: For #2193 and #2196, make the root of the color editor focusable so it can take...

... keyboard events, and block arrow keys from bubbling upward.

To make the root focusable, we set its `tabindex` to -1 -- this makes it so it will receive focus when clicked on, but will not participate in tab order. That makes the existing undo/redo key handler work when the background is clicked on, and also enables us to trap the arrow keys that would otherwise be handled by the parent scroller.