[Bf-blender-cvs] [a00ebae] master: UI: Increase cursor distance to leave keyboard navigation
Campbell Barton
noreply at git.blender.org
Fri Feb 21 06:01:25 CET 2014
Commit: a00ebaecce6531bedd8db85e0a06a04d57da68c1
Author: Campbell Barton
Date: Fri Feb 21 15:57:09 2014 +1100
https://developer.blender.org/rBa00ebaecce6531bedd8db85e0a06a04d57da68c1
UI: Increase cursor distance to leave keyboard navigation
This mitigates T38505, where moving the mouse while using the wheel/keys
can exit the submenu.
So at least smaller unintentional movements won't be misinterpreted.
===================================================================
M source/blender/editors/interface/interface_handlers.c
===================================================================
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 150141e..ce15188 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -114,7 +114,7 @@ static bool ui_mouse_motion_keynav_test(struct uiKeyNavLock *keynav, const wmEve
#define BUTTON_AUTO_OPEN_THRESH 0.3
#define BUTTON_MOUSE_TOWARDS_THRESH 1.0
/* pixels to move the cursor to get out of keyboard navigation */
-#define BUTTON_KEYNAV_PX_LIMIT 4
+#define BUTTON_KEYNAV_PX_LIMIT 8
#define MENU_TOWARDS_MARGIN 20 /* margin in pixels */
#define MENU_TOWARDS_WIGGLE_ROOM 64 /* tolerance in pixels */
More information about the Bf-blender-cvs
mailing list