aboutsummaryrefslogtreecommitdiff
path: root/src/browsertab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/browsertab.cpp')
-rw-r--r--src/browsertab.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/browsertab.cpp b/src/browsertab.cpp
index 1c9bcd6..e88225b 100644
--- a/src/browsertab.cpp
+++ b/src/browsertab.cpp
@@ -1192,11 +1192,19 @@ void BrowserTab::on_text_browser_customContextMenuRequested(const QPoint &pos)
menu.addSeparator();
QAction * copy = menu.addAction("Copy to clipboard");
- copy->setShortcut(QKeySequence("Ctrl-C"));
+ copy->setShortcut(QKeySequence("Ctrl+C"));
connect(copy, &QAction::triggered, [this]() {
this->ui->text_browser->copy();
});
+ menu.addSeparator();
+
+ QAction * viewsrc = menu.addAction("View document source");
+ viewsrc->setShortcut(QKeySequence("Ctrl+U"));
+ connect(viewsrc, &QAction::triggered, [this]() {
+ mainWindow->viewPageSource();
+ });
+
menu.exec(ui->text_browser->mapToGlobal(pos));
}