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.h | |
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.h')
-rw-r--r-- | src/gui/widgets/dropdown.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/dropdown.h b/src/gui/widgets/dropdown.h index 568e20a5..15c52767 100644 --- a/src/gui/widgets/dropdown.h +++ b/src/gui/widgets/dropdown.h @@ -58,6 +58,10 @@ class DropDown : public gcn::DropDown void drawFrame(gcn::Graphics *graphics); + // Inherited from FocusListener + + void focusLost(const gcn::Event& event); + // Inherited from KeyListener void keyPressed(gcn::KeyEvent& keyEvent); |