summaryrefslogtreecommitdiff
path: root/plugingui/listboxbasic.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/listboxbasic.cc')
-rw-r--r--plugingui/listboxbasic.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/listboxbasic.cc b/plugingui/listboxbasic.cc
index d589ebb..3711b56 100644
--- a/plugingui/listboxbasic.cc
+++ b/plugingui/listboxbasic.cc
@@ -282,6 +282,11 @@ void ListBoxBasic::keyEvent(KeyEvent* keyEvent)
void ListBoxBasic::buttonEvent(ButtonEvent* buttonEvent)
{
+ // Ignore everything except left clicks.
+ if (buttonEvent->button != MouseButton::left) {
+ return;
+ }
+
if((buttonEvent->x > ((int)width() - btn_size)) &&
(buttonEvent->y < ((int)width() - 1)))
{