summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/chatwindow.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 2c254ad62..4533d7ee4 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -905,7 +905,12 @@ void ChatWindow::keyPressed(gcn::KeyEvent &event)
{
case Key::F1:
if (emoteWindow)
- emoteWindow->show();
+ {
+ if (emoteWindow->isVisible())
+ emoteWindow->hide();
+ else
+ emoteWindow->show();
+ }
break;
caseKey(Key::F2, "\u2318");
caseKey(Key::F3, "\u263A");