summaryrefslogtreecommitdiff
path: root/plugingui/combobox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/combobox.cc')
-rw-r--r--plugingui/combobox.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/combobox.cc b/plugingui/combobox.cc
index 752dbb3..5b7dd89 100644
--- a/plugingui/combobox.cc
+++ b/plugingui/combobox.cc
@@ -209,6 +209,11 @@ void ComboBox::keyEvent(KeyEvent* keyEvent)
void ComboBox::buttonEvent(ButtonEvent* buttonEvent)
{
+ // Ignore everything except left clicks.
+ if (buttonEvent->button != MouseButton::left) {
+ return;
+ }
+
if(buttonEvent->direction != Direction::down)
{
return;