diff options
author | Florian Bruhin <git@the-compiler.org> | 2015-02-26 20:12:48 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2015-03-18 23:13:42 +0100 |
commit | 471e62ffabf5ece86ebd90459ced2eba7e267483 (patch) | |
tree | 2ca2c2e10e0147c754866a43f1964aab6bd39f08 | |
parent | f3b55d68db05247b5c3f5dc576dadb0aa1848ca3 (diff) | |
download | qutebrowser-471e62ffabf5ece86ebd90459ced2eba7e267483.tar.gz qutebrowser-471e62ffabf5ece86ebd90459ced2eba7e267483.zip |
hints: Include button in buttons().
From the QMouseEvent::buttons documentation:
For mouse move events, this is all buttons that are pressed down. For mouse
press and double click events this includes the button that caused the
event. For mouse release events this excludes the button that caused the
event.
-rw-r--r-- | qutebrowser/browser/hints.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 91d49bbbc..8279c90c3 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -385,7 +385,7 @@ class HintManager(QObject): self.set_open_target.emit(target.name) events += [ QMouseEvent(QEvent.MouseButtonPress, pos, Qt.LeftButton, - Qt.NoButton, modifiers), + Qt.LeftButton, modifiers), QMouseEvent(QEvent.MouseButtonRelease, pos, Qt.LeftButton, Qt.NoButton, modifiers), ] |