From ab6bc718cd6f685c9fea6165426975224f8bbd82 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Thu, 11 Jan 2024 19:21:26 +0100 Subject: [PATCH] #2941 add: shortcut Ctrl + "=" to increase text size in note text edit --- CHANGELOG.md | 4 ++++ src/mainwindow.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1720b866e6..24ff111ca3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # QOwnNotes Changelog +## 24.1.3 +- you now can also use Ctrl + = to increase the text size + in the note text edit (for [#2941](https://github.com/pbek/QOwnNotes/issues/2941)) + ## 24.1.2 - the Snap version of QOwnNotes was (in a Herculean effort) migrated from Core18 to Core22 to cause less problems on Ubuntu 23.10 systems (for [#2876](https://github.com/pbek/QOwnNotes/issues/2876)) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 46283bc761..63d493aea7 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -177,6 +177,10 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { connect(ui->noteEditTabWidget->tabBar(), &QWidget::customContextMenuRequested, this, &MainWindow::showNoteEditTabWidgetContextMenu); + // Set the two shortcuts for the "increase note text size" action + const QList shortcuts = {QKeySequence(Qt::CTRL + Qt::Key_Plus), QKeySequence(Qt::CTRL + Qt::Key_Equal)}; + ui->action_Increase_note_text_size->setShortcuts(shortcuts); + initTreeWidgets(); initNotePreviewAndTextEdits();