diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-30 19:19:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-30 19:19:58 +0300 |
commit | a8b1e41599fd1f18fccc8f34ddca2bca33c4bf4f (patch) | |
tree | c30c586086c1b9797a0b59a420dcdd68d71edb43 /src/gui/logindialog.cpp | |
parent | 4c1ecb78ef90c709acad9023cfd7a13e9f1a1814 (diff) | |
download | ManaVerse-a8b1e41599fd1f18fccc8f34ddca2bca33c4bf4f.tar.gz ManaVerse-a8b1e41599fd1f18fccc8f34ddca2bca33c4bf4f.tar.bz2 ManaVerse-a8b1e41599fd1f18fccc8f34ddca2bca33c4bf4f.tar.xz ManaVerse-a8b1e41599fd1f18fccc8f34ddca2bca33c4bf4f.zip |
Fix key handling conflict issue in login dialog.
Diffstat (limited to 'src/gui/logindialog.cpp')
-rw-r--r-- | src/gui/logindialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp index 63073e9d5..54be72a6e 100644 --- a/src/gui/logindialog.cpp +++ b/src/gui/logindialog.cpp @@ -314,8 +314,10 @@ void LoginDialog::action(const gcn::ActionEvent &event) void LoginDialog::keyPressed(gcn::KeyEvent &keyEvent) { - int actionId = static_cast<KeyEvent*>(&keyEvent)->getActionId(); + if (keyEvent.isConsumed()) + return; + int actionId = static_cast<KeyEvent*>(&keyEvent)->getActionId(); if (actionId == Input::KEY_GUI_CANCEL) { action(gcn::ActionEvent(nullptr, mServerButton->getActionEventId())); |