Explorar o código

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

Tyler Lindberg %!s(int64=7) %!d(string=hai) anos
pai
achega
efa25c9d5e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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();