Fixed viewer list not being closable with the escape key (#3734)
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
- Bugfix: Fixed highlights triggering from own resub messages. (#3707)
|
||||
- Bugfix: Fixed existing emote popups not being raised from behind other windows when refocusing them on macOS (#3713)
|
||||
- Bugfix: Fixed automod queue pubsub topic persisting after user change. (#3718)
|
||||
- Bugfix: Fixed viewer list not closing after pressing escape key. (#3734)
|
||||
- Dev: Use Game Name returned by Get Streams instead of querying it from the Get Games API. (#3662)
|
||||
|
||||
## 2.3.5
|
||||
|
||||
@@ -1067,6 +1067,27 @@ void Split::showViewerList()
|
||||
listDoubleClick(resultList->currentItem()->text());
|
||||
});
|
||||
|
||||
HotkeyController::HotkeyMap actions{
|
||||
{"delete",
|
||||
[viewerDock](std::vector<QString>) -> QString {
|
||||
viewerDock->close();
|
||||
return "";
|
||||
}},
|
||||
{"accept", nullptr},
|
||||
{"reject", nullptr},
|
||||
{"scrollPage", nullptr},
|
||||
{"openTab", nullptr},
|
||||
{"search",
|
||||
[searchBar](std::vector<QString>) -> QString {
|
||||
searchBar->setFocus();
|
||||
searchBar->selectAll();
|
||||
return "";
|
||||
}},
|
||||
};
|
||||
|
||||
getApp()->hotkeys->shortcutsForCategory(HotkeyCategory::PopupWindow,
|
||||
actions, viewerDock);
|
||||
|
||||
dockVbox->addWidget(searchBar);
|
||||
dockVbox->addWidget(loadingLabel);
|
||||
dockVbox->addWidget(chattersList);
|
||||
|
||||
Reference in New Issue
Block a user