added ctrl+t again

This commit is contained in:
fourtf 2018-05-23 19:46:08 +02:00
parent aefdb60ada
commit 4cb666b75a

View file

@ -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); });