Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ed4b429

Browse files
Update browser.py
some addition
1 parent e65ec8b commit ed4b429

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎browser/browser.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from PyQt5.QtGui import *
44
from PyQt5.QtWebEngineWidgets import *
55
from PyQt5.QtPrintSupport import *
6+
from PyQt5.QtWidgets import QShortcut, QLabel, QHBoxLayout
67

78
import os
89
import sys
@@ -58,7 +59,10 @@ def __init__(self, *args, **kwargs):
5859
navtb = QToolBar("Navigation")
5960
navtb.setIconSize(QSize(16, 16))
6061
self.addToolBar(navtb)
61-
62+
63+
self.shortcut_open = QShortcut(QKeySequence('F5'), self)
64+
self.shortcut_open.triggered.connect(self.browser.reload)
65+
6266
back_btn = QAction(QIcon(os.path.join('images', 'arrow-180.png')), "Back", self)
6367
back_btn.setStatusTip("Back to previous page")
6468
back_btn.triggered.connect(self.browser.back)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /