[Bf-committers] double-click non-mouse events?

Ton Roosendaal ton at blender.org
Mon Dec 31 19:13:55 CET 2012


Hi,

If double click is not handled, the 2nd keypress is passed on to the queues.
Try pressing A many times, goes fine. Also for typing text everywhere.

Btw: "tapping up" I dont grasp, and if "keyboards can do double clicking" of course they do! 

-Ton-

------------------------------------------------------------------------
Ton Roosendaal  Blender Foundation   ton at blender.org    www.blender.org
Blender Institute   Entrepotdok 57A  1018AD Amsterdam   The Netherlands

On 31 Dec, 2012, at 19:04, Campbell Barton wrote:

> When testing auto-complete modal-operator in the text editor, I found
> that tapping up twice gives a KM_DBL_CLICK event.val, since Im
> checking for KM_PRESS this makes the second tap do nothing.
> 
> Is it intentional that keyboards can do double clicking too?
> 
> source/blender/windowmanager/intern/wm_event_system.c:2961
> 			/* double click test */
> 			/* if previous event was same type, and previous was release, and
> now it presses... */
> 
> Adding ISMOUSE(event.type) check here makes it work as I'd expect.
> 
> -- 
> - Campbell
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers



More information about the Bf-committers mailing list