diff options
author | Tametomo <irarice@gmail.com> | 2009-06-24 08:46:46 -0600 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-14 21:33:31 +0100 |
commit | c8ac922256709e51674a67195f9bdc270f9fc261 (patch) | |
tree | ce611862d8785107102de5e99d0510eca4ded5f7 /src/gui/widgets/dropdown.cpp | |
parent | 5000d1d38f18cbc0008cac2e73845bc618056f6e (diff) | |
download | mana-c8ac922256709e51674a67195f9bdc270f9fc261.tar.gz mana-c8ac922256709e51674a67195f9bdc270f9fc261.tar.bz2 mana-c8ac922256709e51674a67195f9bdc270f9fc261.tar.xz mana-c8ac922256709e51674a67195f9bdc270f9fc261.zip |
Release modal mouse focus in DropDowns when focus is lost. If not
released, this can cause the user to think that the client has frozen up
when dialogs such as the quit dialog take modal focus.
Signed-off-by: Tametomo <irarice@gmail.com>
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r-- | src/gui/widgets/dropdown.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp index c45dc226..8b36f19f 100644 --- a/src/gui/widgets/dropdown.cpp +++ b/src/gui/widgets/dropdown.cpp @@ -234,6 +234,12 @@ void DropDown::keyPressed(gcn::KeyEvent& keyEvent) } } +void DropDown::focusLost(const gcn::Event& event) +{ + gcn::DropDown::focusLost(event); + releaseModalMouseInputFocus(); +} + void DropDown::mouseWheelMovedUp(gcn::MouseEvent& mouseEvent) { setSelected(getSelected() - 1); |