From 4cb666b75aad9335200d30e7bc3ef0396f9fc998 Mon Sep 17 00:00:00 2001 From: fourtf Date: Wed, 23 May 2018 19:46:08 +0200 Subject: [PATCH] added ctrl+t again --- src/widgets/window.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/widgets/window.cpp b/src/widgets/window.cpp index b159257d1..a3fa14775 100644 --- a/src/widgets/window.cpp +++ b/src/widgets/window.cpp @@ -66,9 +66,13 @@ Window::Window(WindowType _type) layout->setMargin(0); /// Initialize program-wide hotkeys - // CTRL+P: Open Settings Dialog + // CTRL+P: Open settings dialog CreateWindowShortcut(this, "CTRL+P", [] { SettingsDialog::showDialog(); }); + // CTRL+T: Create new split + CreateWindowShortcut(this, "CTRL+T", + [this] { this->notebook.getOrAddSelectedPage()->appendNewSplit(true); }); + // CTRL+Number: Switch to n'th tab CreateWindowShortcut(this, "CTRL+1", [this] { this->notebook.selectIndex(0); }); CreateWindowShortcut(this, "CTRL+2", [this] { this->notebook.selectIndex(1); });