diff options
author | James Roper | 2016-10-01 21:52:49 +1000 |
---|---|---|
committer | James Roper | 2016-10-01 22:00:00 +1000 |
commit | 1301de9e396944476fa8e5fd19f4fe5d0fee1dd7 (patch) | |
tree | d9decbc5d97e8667da9e931dd926441325136bc0 /js | |
parent | bac187f3a0f7e8f92d33ca0258fe2e96553d2930 (diff) |
Logitech R400 on Ubuntu blackout button support
On Ubuntu 16.04, the Logitech R400's blackout button gets mapped to 'v'
(keyCode 86). I don't know why this is, but since nothing else is
currently using 'v', this allows it to be supported out of the box.
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/reveal.js b/js/reveal.js index 7d9a305..4a47756 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3968,8 +3968,8 @@ // keyboard modifier key is present if( activeElementIsCE || activeElementIsInput || (event.shiftKey && event.keyCode !== 32) || event.altKey || event.ctrlKey || event.metaKey ) return; - // While paused only allow resume keyboard events; 'b', '.'' - var resumeKeyCodes = [66,190,191]; + // While paused only allow resume keyboard events; 'b', 'v', '.' + var resumeKeyCodes = [66,86,190,191]; var key; // Custom key bindings for togglePause should be able to resume @@ -4041,8 +4041,8 @@ case 32: isOverview() ? deactivateOverview() : event.shiftKey ? navigatePrev() : navigateNext(); break; // return case 13: isOverview() ? deactivateOverview() : triggered = false; break; - // two-spot, semicolon, b, period, Logitech presenter tools "black screen" button - case 58: case 59: case 66: case 190: case 191: togglePause(); break; + // two-spot, semicolon, b, v, period, Logitech presenter tools "black screen" button + case 58: case 59: case 66: case 86: case 190: case 191: togglePause(); break; // f case 70: enterFullscreen(); break; // a |