Commit 8c4e7ed9 authored by Andy Regensky's avatar Andy Regensky
Browse files

Set focus to main window on Key_Escape

parent 6f1d2d7f
......@@ -26,6 +26,8 @@ class MainWindow(QMainWindow):
self.show()
def keyPressEvent(self, event):
if event.key() == Qt.Key_Escape:
self.setFocus()
if event.key() == Qt.Key_Right:
self.viewModel.nextFisheyeImage()
elif event.key() == Qt.Key_Left:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment