- changed the shortcut keys for Zoom In, Zoom Out and Zoom Fit from 1, 2, 3 to '-', '=' respectively 'V'. Added new shortcut keys '1', '2', '3' for Select Project Tab, Select Selected Tab and Select Tool Tab.

This commit is contained in:
Marius Stanciu
2019-02-04 22:35:01 +02:00
committed by Marius S
parent 713b584841
commit 8a6c48c7a9
4 changed files with 54 additions and 22 deletions

View File

@@ -387,17 +387,17 @@ class ObjectCollection(QtCore.QAbstractItemModel):
if key == QtCore.Qt.Key_F2:
webbrowser.open(self.app.video_url)
# Zoom Fit
# Switch to Project Tab
if key == QtCore.Qt.Key_1:
self.app.on_zoom_fit(None)
self.app.on_select_tab('project')
# Zoom In
# Switch to Selected Tab
if key == QtCore.Qt.Key_2:
self.app.plotcanvas.zoom(1 / self.app.defaults['zoom_ratio'], self.app.mouse)
self.app.on_select_tab('selected')
# Zoom Out
# Switch to Tool Tab
if key == QtCore.Qt.Key_3:
self.app.plotcanvas.zoom(self.app.defaults['zoom_ratio'], self.app.mouse)
self.app.on_select_tab('tool')
# Delete
if key == QtCore.Qt.Key_Delete and active:
@@ -477,6 +477,14 @@ class ObjectCollection(QtCore.QAbstractItemModel):
if key == QtCore.Qt.Key_Y:
self.app.on_flipy()
# Zoom In
if key == QtCore.Qt.Key_Equal:
self.app.plotcanvas.zoom(1 / self.app.defaults['zoom_ratio'], self.app.mouse)
# Zoom Out
if key == QtCore.Qt.Key_Minus:
self.app.plotcanvas.zoom(self.app.defaults['zoom_ratio'], self.app.mouse)
# Show shortcut list
if key == QtCore.Qt.Key_Ampersand:
self.app.on_shortcut_list()