Browse Source

add optional 'o' key to toggle overview #491

Hakim El Hattab 11 năm trước cách đây
mục cha
commit
1bb810e072
3 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 1 1
      README.md
  2. 2 1
      js/reveal.js
  3. 1 1
      js/reveal.min.js

+ 1 - 1
README.md

@@ -400,7 +400,7 @@ By default, Reveal is configured with [highlight.js](http://softwaremaniacs.org/
 
 ### Overview mode
 
-Press "Esc" key to toggle the overview mode on and off. While you're in this mode, you can still navigate between slides,
+Press "Esc" or "o" keys to toggle the overview mode on and off. While you're in this mode, you can still navigate between slides,
 as if you were at 1,000 feet above your presentation. The overview mode comes with a few API hooks:
 
 ```javascript

+ 2 - 1
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();

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
js/reveal.min.js


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác