Browse Source

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

Tyler Lindberg 7 years ago
parent
commit
efa25c9d5e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/index.html

+ 2 - 0
editor/index.html

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