- added support for shortcut key F2 when in the Project Tab and that will allow the object renaming much faster

This commit is contained in:
Marius Stanciu
2020-11-07 20:26:11 +02:00
committed by Marius
parent 02bdb20a08
commit d842b490a8
3 changed files with 11 additions and 0 deletions

View File

@@ -2720,6 +2720,10 @@ class MainGUI(QtWidgets.QMainWindow):
if key == QtCore.Qt.Key_F1 or key == 'F1':
webbrowser.open(self.app.manual_url)
# Rename Objects in the Project Tab
if key == QtCore.Qt.Key_F2:
self.app.collection.view.edit(self.app.collection.view.currentIndex())
# Show shortcut list
if key == QtCore.Qt.Key_F3 or key == 'F3':
self.app.on_shortcut_list()
@@ -4404,6 +4408,10 @@ class ShortcutsTab(QtWidgets.QWidget):
<td height="20"><strong>%s</strong></td>
<td>&nbsp;%s</td>
</tr>
<tr height="20">
<td height="20"><strong>%s</strong></td>
<td>&nbsp;%s</td>
</tr>
<tr height="20">
<td height="20"><strong>'%s'</strong></td>
<td>&nbsp;%s</td>
@@ -4512,6 +4520,7 @@ class ShortcutsTab(QtWidgets.QWidget):
# F keys section
_('F1'), _("Open Online Manual"),
_('F2'), _("Rename Objects"),
_('F4'), _("Open Online Tutorials"),
_('F5'), _("Refresh Plots"),
_('Del'), _("Delete Object"),