Fix [#20129] emulate numpad
Converted Command+LMB to send a RMB click event on Mac OS X, if Emulate 3 Button Mouse is switched on. Also fixes for previous commit, didn't all go through.
This commit is contained in:
@@ -1500,7 +1500,7 @@ void POSE_OT_select_linked(wmOperatorType *ot)
|
||||
/* api callbacks */
|
||||
ot->exec= NULL;
|
||||
ot->invoke= pose_select_connected_invoke;
|
||||
ot->poll= select_linked_poll;
|
||||
ot->poll= pose_select_linked_poll;
|
||||
|
||||
/* flags */
|
||||
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
|
||||
@@ -1599,7 +1599,7 @@ void ARMATURE_OT_select_linked(wmOperatorType *ot)
|
||||
/* api callbacks */
|
||||
ot->exec= NULL;
|
||||
ot->invoke= armature_select_linked_invoke;
|
||||
ot->poll= ED_operator_editarmature;
|
||||
ot->poll= armature_select_linked_poll;
|
||||
|
||||
/* flags */
|
||||
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
|
||||
|
||||
@@ -781,6 +781,16 @@ static void wm_eventemulation(wmEvent *event)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
/* rightmouse emulation */
|
||||
if(U.flag & USER_TWOBUTTONMOUSE) {
|
||||
if(event->type == LEFTMOUSE && event->oskey) {
|
||||
event->type = RIGHTMOUSE;
|
||||
event->oskey = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* numpad emulation */
|
||||
if(U.flag & USER_NONUMPAD) {
|
||||
switch(event->type) {
|
||||
|
||||
Reference in New Issue
Block a user