From 1bb810e072869702fa6aafe085787a44b54d34f2 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 18 Jul 2013 21:53:00 -0400 Subject: add optional 'o' key to toggle overview #491 --- js/reveal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 48cba2c..651b1be 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2187,7 +2187,8 @@ var Reveal = (function(){ if( triggered ) { event.preventDefault(); } - else if ( event.keyCode === 27 && supports3DTransforms ) { + // ESC or O key + else if ( ( event.keyCode === 27 || event.keyCode === 79 ) && supports3DTransforms ) { toggleOverview(); event.preventDefault(); -- cgit v1.2.3