From 265bab1ce64eba9238f3a7e37661207b013ef4b2 Mon Sep 17 00:00:00 2001 From: pajlada Date: Sun, 5 Jan 2020 09:45:10 +0100 Subject: [PATCH] Add the ability to tab through the emote menu (#1483) Fixes #1478 --- src/widgets/dialogs/EmotePopup.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/widgets/dialogs/EmotePopup.cpp b/src/widgets/dialogs/EmotePopup.cpp index 6aebd2149..00beb11c3 100644 --- a/src/widgets/dialogs/EmotePopup.cpp +++ b/src/widgets/dialogs/EmotePopup.cpp @@ -7,6 +7,7 @@ #include "messages/MessageBuilder.hpp" #include "providers/twitch/TwitchChannel.hpp" #include "singletons/Emotes.hpp" +#include "util/Shortcut.hpp" #include "widgets/Notebook.hpp" #include "widgets/helper/ChannelView.hpp" @@ -131,6 +132,10 @@ EmotePopup::EmotePopup(QWidget *parent) this->viewEmojis_ = makeView("Emojis"); this->loadEmojis(); + + createWindowShortcut(this, "CTRL+Tab", [=] { notebook->selectNextTab(); }); + createWindowShortcut(this, "CTRL+Shift+Tab", + [=] { notebook->selectPreviousTab(); }); } void EmotePopup::loadChannel(ChannelPtr _channel)