Bug 831396: Restrict the wired headset events detected. r=etienne a=blocking-b2g
(cherry picked from commit b39f61ecf6e32400f3fa2e1b4c6011f1fa42ea51)