diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-20 18:36:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-20 18:36:31 +0300 |
commit | 1a6beed9f1c58afd0d9eb6999f0ca12e08d0531d (patch) | |
tree | 78f329651e7213871eb36fda00118828fe84cca7 /src/gui | |
parent | 9cf563fa7f4059bfddd82efdaa89df2ed07a6d7c (diff) | |
download | plus-1a6beed9f1c58afd0d9eb6999f0ca12e08d0531d.tar.gz plus-1a6beed9f1c58afd0d9eb6999f0ca12e08d0531d.tar.bz2 plus-1a6beed9f1c58afd0d9eb6999f0ca12e08d0531d.tar.xz plus-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.cpp | 7 |
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"); |