From 17cb2a6da0c88eb509448447e10bc73a38398895 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Tue, 20 Oct 2020 22:16:55 +0200 Subject: UI: Move gesture selection with spacebar This patch adds a modal key to move the selection box/lasso/line while drawing it. It also sets "repeat": False on the animation playback key to prevent accidental playback if the spacebar is released after the mouse button. Reviewed By: #user_interface, pablovazquez, Severin Differential Revision: https://developer.blender.org/D9227 --- source/blender/windowmanager/wm_event_types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/windowmanager/wm_event_types.h') diff --git a/source/blender/windowmanager/wm_event_types.h b/source/blender/windowmanager/wm_event_types.h index c8f282e678f..de8ca0dc68a 100644 --- a/source/blender/windowmanager/wm_event_types.h +++ b/source/blender/windowmanager/wm_event_types.h @@ -490,6 +490,9 @@ enum { /** circle select: size brush (for trackpad event). */ GESTURE_MODAL_CIRCLE_SIZE = 11, + + /** Move selection area. */ + GESTURE_MODAL_MOVE = 12, }; #ifdef __cplusplus -- cgit v1.2.3