diff --git a/forms/mainwindow.ui b/forms/mainwindow.ui
index a51e0c16e76f1518b8d6c35311727794e8c28c61..ff21b0400d07a20b54ecc60ab02013d4760fcd8a 100644
--- a/forms/mainwindow.ui
+++ b/forms/mainwindow.ui
@@ -72,6 +72,7 @@
     <addaction name="separator"/>
     <addaction name="actionBack_to_Origin"/>
     <addaction name="actionZoom_Windows"/>
+    <addaction name="actionZoom_Extents"/>
    </widget>
    <widget class="QMenu" name="menuEdit">
     <property name="title">
@@ -730,6 +731,14 @@
     <string>Meta+W</string>
    </property>
   </action>
+  <action name="actionZoom_Extents">
+   <property name="text">
+    <string>Zoom Extents</string>
+   </property>
+   <property name="shortcut">
+    <string>Meta+E</string>
+   </property>
+  </action>
  </widget>
  <resources>
   <include location="../Resources/resources.qrc"/>
diff --git a/src/mainWindow.cpp b/src/mainWindow.cpp
index 3a76dd9e5a71514f398eaf4844b2552e2c74cb4f..71795753bfac636343f6c8c78a6f066163683f68 100644
--- a/src/mainWindow.cpp
+++ b/src/mainWindow.cpp
@@ -844,3 +844,8 @@ void MWindow::on_actionZoom_Windows_triggered()
     en_selectMode();
     mview->selectedWindows();
 }
+
+void MWindow::on_actionZoom_Extents_triggered()
+{
+    mview->AutoZoom();
+}
diff --git a/src/mainWindow.h b/src/mainWindow.h
index 0e042082469515c41dbcfdfc8f35231e030bf281..98f3f406c9521feb19f8e311f071d7a0fe7bafae 100644
--- a/src/mainWindow.h
+++ b/src/mainWindow.h
@@ -169,6 +169,7 @@ private slots:
     void on_actionNew_Inifile_triggered();
     void on_actionBack_to_Origin_triggered();
     void on_actionZoom_Windows_triggered();
+    void on_actionZoom_Extents_triggered();
 };
 
 #endif // MAINWINDOW_H