mozilla/treeherder-ui — pull request #319 by tojonmz (2014-12-29 18:35:09+00:00)
Title: Bug 1107136 -  Add a keyboard shortcut for clear-all in pinboard

This work fixes Bugzilla bug [1107136](https://bugzilla.mozilla.org/show_bug.cgi?id=1107136).

In it we invoke the same clear as if the user had clicked on the 'clear all' button in the pinboard, if:

* the job panel is open
* the pinboard is open
* both modifiers and the shortcut are depressed

If the pinboard is closed, we will not clear, since the user can't see what they are about to remove.

As discussed in the bug I used '**ctrl+shift+u**' akin to the unix and vi functionality 'ctrl+u' which clears a line of input. A double modifier combination requires a bit more conscious choice so it won't be accidentally invoked. It also keeps us clear of existing modifiers in Treeherder (u: toggle unclassified) and in the browser (ctrl+u: view source).

Here's an example pre-clear state:

![preclearstate](https://cloud.githubusercontent.com/assets/3660661/5570945/84e866e6-8f57-11e4-8c36-d4d1c2a1129a.jpg)

And post-clear state:

![postclearstate](https://cloud.githubusercontent.com/assets/3660661/5570948/8c236d84-8f57-11e4-974e-5d4825245fdc.jpg)

I also added it to Help, and did a bit of re-arranging while I was there, so all the pin functionality shortcuts are grouped together.

![helpupdate](https://cloud.githubusercontent.com/assets/3660661/5570963/d0dafb5e-8f57-11e4-8032-5b25fded4bfd.jpg)

All my local testing seems fine. Pinning, related bugs, comments, classification states, all cleared correctly. Similarly preserving and *not* pinning when the pinboard is closed, or the job panel is closed. And the other u shortcuts mentioned (treeherder, native browser) are still working properly on both browsers.

Tested on Windows:
FF Release **34.0**
Chrome Latest Release **39.0.2171.95 m**

Adding @camd for review and @edmorley for visibility.