Whatever we want to do, when the VideoWidget has been double-clicked with the left button
547462
def handle_left_double_click(self, info):
        
        if (self.double_click_focus == False):  # turn focus on
            print(self.pre, "handle_left_double_click: focus on")
            self.cb_focus()
        else:  # turn focus off
            print(self.pre, "handle_left_double_click: focus off")
            self.cb_unfocus()
        self.double_click_focus = not(
            self.double_click_focus)
1064249
def _onLeftButtonDClick(self, evt):
        """"""
        x = evt.GetX()
        y = self.figure.bbox.height - evt.GetY()
        evt.Skip()
        self.CaptureMouse()
        FigureCanvasBase.button_press_event(self, x, y, 1, dblclick=True, guiEvent=evt)
316776
def record(button=RIGHT, target_types=(DOWN,)):
    
    recorded = []
    hook(recorded.append)
    wait(button=button, target_types=target_types)
    unhook(recorded.append)
    return recorded
648876
def _qteMouseClicked(self, widgetObj):
        

        # ------------------------------------------------------------
        # The following cases for widgetObj have to be distinguished:
        #   1: not part of the Qtmacs widget hierarchy
        #   2: part of the Qtmacs widget hierarchy but not registered
        #   3: registered with Qtmacs and an applet
        #   4: registered with Qtmacs and anything but an applet
        # ------------------------------------------------------------

        # Case 1: return immediately if widgetObj is not part of the
        # Qtmacs widget hierarchy; otherwise, declare the applet
        # containing the widgetObj active.
        app = qteGetAppletFromWidget(widgetObj)
        if app is None:
            return
        else:
            self._qteActiveApplet = app

        # Case 2: unregistered widgets are activated immediately.
        if not hasattr(widgetObj, '_qteAdmin'):
            self._qteActiveApplet.qteMakeWidgetActive(widgetObj)
        else:
            if app._qteAdmin.isQtmacsApplet:
                # Case 3: widgetObj is a QtmacsApplet instance; do not
                # focus any of its widgets as the focus manager will
                # take care of it.
                self._qteActiveApplet.qteMakeWidgetActive(None)
            else:
                # Case 4: widgetObj was registered with qteAddWidget
                # and can thus be focused directly.
                self._qteActiveApplet.qteMakeWidgetActive(widgetObj)

        # Trigger the focus manager.
        self._qteFocusManager()
343285
private void hookDraggablePanelListeners() {
    draggablePanel.setDraggableListener(new DraggableListener() {
      @Override public void onMaximized() {
        playVideo();
      }

      @Override public void onMinimized() {
        //Empty
      }

      @Override public void onClosedToLeft() {
        pauseVideo();
      }

      @Override public void onClosedToRight() {
        pauseVideo();
      }
    });
  }
816836
def mouseDoubleClickEvent(self, event):
        
        item = self.itemAt(event.pos())
        column = self.columnAt(event.pos().x())
        
        mid_button = event.button() == QtCore.Qt.MidButton
        ctrl_click = event.button() == QtCore.Qt.LeftButton and \
                     event.modifiers() == QtCore.Qt.ControlModifier
        
        if mid_button or ctrl_click:
            self.itemMiddleDoubleClicked.emit(item, column)
        elif event.button() == QtCore.Qt.RightButton:
            self.itemRightDoubleClicked.emit(item, column)
        else:
            super(XTreeWidget, self).mouseDoubleClickEvent(event)
362567
def _on_key_press(self, widget, event):
        
        self.currently_pressed_keys.add(event.keyval)
        if event.keyval in [Gdk.KEY_Tab, Gdk.KEY_ISO_Left_Tab] and event.state & Gdk.ModifierType.CONTROL_MASK:
            self.toggle_sidebars()
566627
function (event) {
            // Check if left mouse button is pressed
            if (event.button === 0 && this.isClickable) {
                this.updated = true;
                this.released = false;
                if (this.isHoldable) {
                    if (this.holdTimeout !== null) {
                        me.timer.clearTimeout(this.holdTimeout);
                    }
                    this.holdTimeout = me.timer.setTimeout(this.hold.bind(this), this.holdThreshold, false);
                    this.released = false;
                }
                return this.onClick.call(this, event);
            }
        }
965465
def show(self):
        
        super(XSnapshotWidget, self).show()
        
        if self.hideWindow():
            self.hideWindow().hide()
            QApplication.processEvents()
279723
def OnMouseWheel(self, event):
        """"""

        if event.	ShiftDown():
            self.OnShiftVideo(event)
        else:
            self.OnAdjustVolume(event)
1283780
function videoEnterFullscreen(element) {
		var videoElement = _getVideo(element);

		if (videoElement && videoElement.webkitEnterFullscreen) {
			try {
				if (videoElement.readyState < videoElement.HAVE_METADATA) {
					videoElement.addEventListener('loadedmetadata', function onMetadataLoaded() {
						videoElement.removeEventListener('loadedmetadata', onMetadataLoaded, false);
						videoElement.webkitEnterFullscreen();
						hasControls = !!videoElement.getAttribute('controls');
					}, false);
					videoElement.load();
				}
				else {
					videoElement.webkitEnterFullscreen();
					hasControls = !!videoElement.getAttribute('controls');
				}

				lastVideoElement = videoElement;
			}
			catch (err) {
				return callOnError('not_supported', element);
			}

			return true;
		}

		return callOnError(fn.request === undefined ? 'not_supported' : 'not_enabled', element);
	}
338731
def double_click(self, on_element=None):
        
        if on_element:
            self.move_to_element(on_element)
        if self._driver.w3c:
            self.w3c_actions.pointer_action.double_click()
            for _ in range(4):
                self.w3c_actions.key_action.pause()
        else:
            self._actions.append(lambda: self._driver.execute(
                                 Command.DOUBLE_CLICK, {}))
        return self
633826
def emitRecordMiddleDoubleClicked(self, item):
        
        # emit that the record has been double clicked
        if isinstance(item, XOrbRecordItem) and not self.signalsBlocked():
            self.recordMiddleDoubleClicked.emit(item.record())
549093
@OnClick(R.id.iv_thumbnail) void onThubmnailClicked() {
    Toast.makeText(this, VIDEO_TITLE, Toast.LENGTH_SHORT).show();
  }
1088688
@Override
	public void onDoubleClick(DoubleClickEvent event) {
		if (event.getNativeButton() != Event.BUTTON_RIGHT) {
			handler.onDraw(geometry);
		}
	}
287297
def mouseDoubleClickEvent( self, event ):
        
        super(XNavigationEdit, self).mouseDoubleClickEvent(event)
        
        self.startEdit()
443220
def release(button=LEFT):
    
    location = get_position()
    button_code, _, button_up, _ = _button_mapping[button]
    e = Quartz.CGEventCreateMouseEvent(
        None,
        button_up,
        location,
        button_code)

    if _last_click["time"] is not None and _last_click["time"] > datetime.datetime.now() - datetime.timedelta(microseconds=300000) and _last_click["button"] == button and _last_click["position"] == location:
        # Repeated Click
        Quartz.CGEventSetIntegerValueField(
            e,
            Quartz.kCGMouseEventClickState,
            _last_click["click_count"])
    Quartz.CGEventPost(Quartz.kCGHIDEventTap, e)
    _button_state[button] = False