diff options
author | Ray Molenkamp <github@lazydodo.com> | 2020-03-18 19:38:37 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2020-03-18 19:38:37 +0300 |
commit | b88ca3e6d113d161dd119bf1cec959c73b797af7 (patch) | |
tree | 6a8b73ca95f8a21742cba1e764d1e24cc5ae8db5 /source/blender/editors/screen | |
parent | 9e382dd2a3d8569201a3e5c1a8478166c77e9029 (diff) |
Cleanup: Resolve HKEY conflict
Both the MS headers and blender headers define the HKEY
which gives all kind of inclusion order issues.
This diff renames all *KEY constants to EVT_*KEY to resolve
this conflict.
Reviewed By: brecht , dfelinto
Differential Revision: http://developer.blender.org/D7164
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index a72b18f63f8..2fe34d61a04 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -1090,7 +1090,7 @@ static int actionzone_modal(bContext *C, wmOperator *op, const wmEvent *event) } break; } - case ESCKEY: + case EVT_ESCKEY: actionzone_exit(op); return OPERATOR_CANCELLED; case LEFTMOUSE: @@ -1270,7 +1270,7 @@ static int area_swap_modal(bContext *C, wmOperator *op, const wmEvent *event) } break; - case ESCKEY: + case EVT_ESCKEY: area_swap_cancel(C, op); return OPERATOR_CANCELLED; } @@ -2335,7 +2335,7 @@ static int area_split_modal(bContext *C, wmOperator *op, const wmEvent *event) break; case MIDDLEMOUSE: - case TABKEY: + case EVT_TABKEY: if (sd->previewmode == 0) { /* pass */ } @@ -2353,11 +2353,11 @@ static int area_split_modal(bContext *C, wmOperator *op, const wmEvent *event) break; case RIGHTMOUSE: /* cancel operation */ - case ESCKEY: + case EVT_ESCKEY: area_split_cancel(C, op); return OPERATOR_CANCELLED; - case LEFTCTRLKEY: + case EVT_LEFTCTRLKEY: sd->do_snap = event->val == KM_PRESS; update_factor = true; break; @@ -2757,7 +2757,7 @@ static int region_scale_modal(bContext *C, wmOperator *op, const wmEvent *event) } break; - case ESCKEY: + case EVT_ESCKEY: break; } @@ -3473,7 +3473,7 @@ static int area_join_modal(bContext *C, wmOperator *op, const wmEvent *event) break; case RIGHTMOUSE: - case ESCKEY: + case EVT_ESCKEY: area_join_cancel(C, op); return OPERATOR_CANCELLED; } |