[pitivi] elements: Handle only left clicks on the keyframes line
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] elements: Handle only left clicks on the keyframes line
- Date: Tue, 9 Feb 2016 14:57:56 +0000 (UTC)
commit 0bc283cbed75307ae7830d7215daa4cf4e680c29
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Tue Feb 9 09:45:11 2016 +0100
elements: Handle only left clicks on the keyframes line
Right-click and middle-click are for seek and scroll.
Fixes https://phabricator.freedesktop.org/T7316
Reviewed-by: Thibault Saunier <tsaunier gnome org>
Differential Revision: https://phabricator.freedesktop.org/D743
pitivi/timeline/elements.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 63ed010..6e6c1f6 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -232,6 +232,9 @@ class KeyframeCurve(FigureCanvas, Loggable):
return False
def __mplButtonPressEventCb(self, event):
+ if event.button != 1:
+ return
+
result = self.__keyframes.contains(event)
if result[0]:
self.__offset = self.__keyframes.get_offsets()[
@@ -319,6 +322,9 @@ class KeyframeCurve(FigureCanvas, Loggable):
cursor)
def __mplButtonReleaseEventCb(self, event):
+ if event.button != 1:
+ return
+
if not self.__dragged and not self.__offset:
if event.guiEvent.type == Gdk.EventType.BUTTON_RELEASE:
self.__maybeCreateKeyframe(event)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]