From 1a6beed9f1c58afd0d9eb6999f0ca12e08d0531d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 20 Oct 2013 18:36:31 +0300 Subject: close in chat emotes window by f1 if it already opened. --- src/gui/windows/chatwindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/gui/windows') 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"); -- cgit v1.2.3-70-g09d2