mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-13 06:10:24 +02:00
NetPlayChatUI: Add activate chat hotkey
This commit is contained in:
1 parent
eaa1874875
commit
f7897778ff
8 files changed
+33
-2
No files matched your search
@@ -60,7 +60,12 @@ void NetPlayChatUI::Display()
|
||||
ImGuiInputTextFlags_EnterReturnsTrue))
|
||||
{
|
||||
SendMessage();
|
||||
}
|
||||
|
||||
if (m_activate)
|
||||
{
|
||||
ImGui::SetKeyboardFocusHere(-1);
|
||||
m_activate = false;
|
||||
}
|
||||
|
||||
ImGui::PopItemWidth();
|
||||
@@ -97,3 +102,11 @@ void NetPlayChatUI::SendMessage()
|
||||
m_message_buf[0] = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
void NetPlayChatUI::Activate()
|
||||
{
|
||||
if (ImGui::IsItemFocused())
|
||||
ImGui::SetWindowFocus(NULL);
|
||||
else
|
||||
m_activate = true;
|
||||
}
|
||||
Reference in new issue
Block a user