@@ -745,26 +745,6 @@ cdef class PyBrowser:
745745 cdef CefMouseEvent mouseEvent
746746 mouseEvent.x = x
747747 mouseEvent.y = y
748- """
749- TODO: allow to pass modifiers which represents
750- bit flags describing any pressed modifier keys.
751- See cef_event_flags_t for values.
752- enum cef_event_flags_t {
753- EVENTFLAG_NONE = 0,
754- EVENTFLAG_CAPS_LOCK_ON = 1 << 0,
755- EVENTFLAG_SHIFT_DOWN = 1 << 1,
756- EVENTFLAG_CONTROL_DOWN = 1 << 2,
757- EVENTFLAG_ALT_DOWN = 1 << 3,
758- EVENTFLAG_LEFT_MOUSE_BUTTON = 1 << 4,
759- EVENTFLAG_MIDDLE_MOUSE_BUTTON = 1 << 5,
760- EVENTFLAG_RIGHT_MOUSE_BUTTON = 1 << 6,
761- // Mac OS-X command key.
762- EVENTFLAG_COMMAND_DOWN = 1 << 7,
763- EVENTFLAG_NUM_LOCK_ON = 1 << 8,
764- EVENTFLAG_IS_KEY_PAD = 1 << 9,
765- EVENTFLAG_IS_LEFT = 1 << 10,
766- EVENTFLAG_IS_RIGHT = 1 << 11,
767- """
768748 mouseEvent.modifiers = modifiers
769749 self .GetCefBrowserHost().get().SendMouseClickEvent(mouseEvent,
770750 mouseButtonType, bool (mouseUp), clickCount)
0 commit comments