Keymap: use release event instead of click

Minor change to last commit, prefer release as click depends on
not moving the mouse cursor.
This commit is contained in:
Campbell Barton 2020-09-23 16:59:13 +10:00
parent 447dde3c72
commit 286909ded7
1 changed files with 4 additions and 4 deletions

View File

@ -4349,8 +4349,8 @@ def km_sculpt(params):
)
items.extend([
# Switch Object (click to avoid conflict with grease pencil drawing).
("object.switch_object", {"type": 'D', "value": 'CLICK'}, None),
# Switch Object (release to avoid conflict with grease pencil drawing).
("object.switch_object", {"type": 'D', "value": 'RELEASE'}, None),
# Brush strokes
("sculpt.brush_stroke", {"type": 'LEFTMOUSE', "value": 'PRESS'},
{"properties": [("mode", 'NORMAL')]}),
@ -4467,8 +4467,8 @@ def km_mesh(params):
)
items.extend([
# Switch Object (click to avoid conflict with grease pencil drawing).
("object.switch_object", {"type": 'D', "value": 'CLICK'}, None),
# Switch Object (release to avoid conflict with grease pencil drawing).
("object.switch_object", {"type": 'D', "value": 'RELEASE'}, None),
# Tools.
("mesh.loopcut_slide", {"type": 'R', "value": 'PRESS', "ctrl": True},
{"properties": [("TRANSFORM_OT_edge_slide", [("release_confirm", False)],)]}),