Bug 1176292 - Send 'toggle-shade' control event to content on 3 finger triple tap. r=yzen
authorEitan Isaacson <eitan@monotonous.org>
Thu, 30 Jul 2015 17:25:08 -0700
changeset 287228 eccb4e58a94ba7ed1a9e96863e760a8d968d2b8f
parent 287227 70dfc7ced3037e7f515d9dc346a24174a2d7bc11
child 287229 3ece3b3dc2f9d9b68b1952e5a3b245865b5e497e
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyzen
bugs1176292
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1176292 - Send 'toggle-shade' control event to content on 3 finger triple tap. r=yzen
accessible/jsat/AccessFu.jsm
--- a/accessible/jsat/AccessFu.jsm
+++ b/accessible/jsat/AccessFu.jsm
@@ -722,16 +722,19 @@ var Input = {
       case 'swipedown3':
         this.quickNavMode.next();
         AccessFu.announce('quicknav_' + this.quickNavMode.current);
         break;
       case 'swipeup3':
         this.quickNavMode.previous();
         AccessFu.announce('quicknav_' + this.quickNavMode.current);
         break;
+      case 'tripletap3':
+        Utils.dispatchChromeEvent('accessibility-control', 'toggle-shade');
+        break;
     }
   },
 
   _handleKeypress: function _handleKeypress(aEvent) {
     let target = aEvent.target;
 
     // Ignore keys with modifiers so the content could take advantage of them.
     if (aEvent.ctrlKey || aEvent.altKey || aEvent.metaKey) {