diff --git a/src/widgets/window.cpp b/src/widgets/window.cpp index b159257d..a3fa1477 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); });