summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-20 18:36:31 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-20 18:36:31 +0300
commit1a6beed9f1c58afd0d9eb6999f0ca12e08d0531d (patch)
tree78f329651e7213871eb36fda00118828fe84cca7 /src/gui
parent9cf563fa7f4059bfddd82efdaa89df2ed07a6d7c (diff)
downloadmanaplus-1a6beed9f1c58afd0d9eb6999f0ca12e08d0531d.tar.gz
manaplus-1a6beed9f1c58afd0d9eb6999f0ca12e08d0531d.tar.bz2
manaplus-1a6beed9f1c58afd0d9eb6999f0ca12e08d0531d.tar.xz
manaplus-1a6beed9f1c58afd0d9eb6999f0ca12e08d0531d.zip
close in chat emotes window by f1 if it already opened.
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");