diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-01-02 13:24:25 +0100 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-01-02 13:24:25 +0100 |
commit | 2cf71ffbfda49bc3791490f4d035897bb35298f8 (patch) | |
tree | 1ed15f0d94f3e10f1b379d51f49f4528cc9df7c6 /plugingui/combobox.cc | |
parent | 7baaa737216080d7ddbeb7d92e53f6078dfd4d3a (diff) |
Ignore all clicks except left clicks in all the widgets.
Of course, we want to change this as soon as we actually want to
use right and middle clicks. But this is not the case atm.
Diffstat (limited to 'plugingui/combobox.cc')
-rw-r--r-- | plugingui/combobox.cc | 5 |
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; |