- added key shortcuts for Open Manual = F1 and for Open Online VideoHelp = F2

This commit is contained in:
Marius Stanciu
2019-01-28 03:24:06 +02:00
committed by Marius S
parent c7a22e7ce5
commit e19af486b3
4 changed files with 26 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ import inspect # TODO: Remove
import FlatCAMApp
from PyQt5 import QtGui, QtCore, QtWidgets
from PyQt5.QtCore import Qt
import webbrowser
class KeySensitiveListView(QtWidgets.QTreeView):
@@ -345,6 +346,14 @@ class ObjectCollection(QtCore.QAbstractItemModel):
return
else:
# Open Manual
if key == QtCore.Qt.Key_F1:
webbrowser.open(self.app.manual_url)
# Open Video Help
if key == QtCore.Qt.Key_F2:
webbrowser.open(self.app.video_url)
# Zoom Fit
if key == QtCore.Qt.Key_1:
self.app.on_zoom_fit(None)