소스 검색

Prevent Command-Z from triggering tabs to open/close on Safari

Tyler Lindberg 7 년 전
부모
커밋
f80d59c462
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      editor/index.html

+ 2 - 0
editor/index.html

@@ -329,6 +329,8 @@
 
 						if ( IS_MAC ? event.metaKey : event.ctrlKey ) {
 
+							event.preventDefault(); // Prevent Safari from opening/closing tabs
+
 							if ( event.shiftKey ) {
 
 								editor.redo();