Przeglądaj źródła

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

Tyler Lindberg 7 lat temu
rodzic
commit
efa25c9d5e
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      editor/index.html

+ 2 - 0
editor/index.html

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