diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-05-10 01:09:42 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-05-10 01:09:42 -0400 |
commit | 1d8ef79da68a89c4561b9079b795d05484ddc419 (patch) | |
tree | b0c223e933897509ef346e6ba5b96612e432f4f0 /src/windows | |
parent | bbf32730cd322ab8d826b9fb73d83fbde73c5419 (diff) | |
download | abaddon-portaudio-1d8ef79da68a89c4561b9079b795d05484ddc419.tar.gz abaddon-portaudio-1d8ef79da68a89c4561b9079b795d05484ddc419.zip |
add ctrl+number key shortcuts for tabs
Diffstat (limited to 'src/windows')
-rw-r--r-- | src/windows/mainwindow.cpp | 4 | ||||
-rw-r--r-- | src/windows/mainwindow.hpp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/windows/mainwindow.cpp b/src/windows/mainwindow.cpp index a6da507..a6a17c5 100644 --- a/src/windows/mainwindow.cpp +++ b/src/windows/mainwindow.cpp @@ -173,6 +173,10 @@ void MainWindow::GoToPreviousTab() { void MainWindow::GoToNextTab() { m_chat.GoToNextTab(); } + +void MainWindow::GoToTab(int idx) { + m_chat.GoToTab(idx); +} #endif void MainWindow::OnDiscordSubmenuPopup() { diff --git a/src/windows/mainwindow.hpp b/src/windows/mainwindow.hpp index 4f6469e..e67f6d2 100644 --- a/src/windows/mainwindow.hpp +++ b/src/windows/mainwindow.hpp @@ -30,6 +30,7 @@ public: void GoForward(); void GoToPreviousTab(); void GoToNextTab(); + void GoToTab(int idx); #endif ChannelList *GetChannelList(); |