Esempio n. 1
0
 def panelMouseUp(evt):
     button = keys.remapMouseButton(evt.button)
     _key_name = None
     if button == 3:
         _key_name = "Button 3"
     elif button == 4:
         _key_name = "Scroll Up"
     elif button == 5:
         _key_name = "Scroll Down"
     elif button == 6:
         _key_name = "Button 4"
     elif button == 7:
         _key_name = "Button 5"
     if 2 < button < 8:
         panel.dismiss(_key_name)
Esempio n. 2
0
 def panelMouseUp(evt):
     button = keys.remapMouseButton(evt.button)
     _key_name = None
     if button == 3:
         _key_name = "Button 3"
     elif button == 4:
         _key_name = "Scroll Up"
     elif button == 5:
         _key_name = "Scroll Down"
     elif button == 6:
         _key_name = "Button 4"
     elif button == 7:
         _key_name = "Button 5"
     if 2 < button < 8:
         panel.dismiss(_key_name)
Esempio n. 3
0
 def mouse_up(self, evt):
     button = keys.remapMouseButton(evt.button)
     logging.debug("Mouse up   %d @ %s", button, evt.pos)
     if button == 1:
         if sys.platform == "darwin" and evt.ctrl:
             self.rightClickUp(evt)
         else:
             self.leftClickUp(evt)
     elif button == 2:
         self.rightClickUp(evt)
     elif button == 3 and sys.platform == "darwin" and evt.alt:
         self.leftClickUp(evt)
     else:
         evt.dict['keyname'] = "mouse{}".format(button)
         self.editor.key_up(evt)