aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/MainUI.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/MainUI.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp
index 298fedde..f01119c6 100644
--- a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp
+++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp
@@ -84,8 +84,10 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){
ui->groupReplace->setVisible(false);
nextTabS = new QShortcut(QKeySequence(QKeySequence::Forward), this);
prevTabS = new QShortcut(QKeySequence(QKeySequence::Back), this);
+ closeTabS = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_F4), this);
connect(nextTabS, SIGNAL(activated()), this, SLOT(nextTab()) );
connect(prevTabS, SIGNAL(activated()), this, SLOT(prevTab()) );
+ connect(closeTabS, SIGNAL(activated()), this, SLOT(CloseFile()) );
//Update the menu of available syntax highlighting modes
QStringList smodes = Custom_Syntax::availableRules(settings);
bgstack15