preventContextMenu Property (InteractiveService)

Summary

Indicates whether to prevent the browser context menu from appearing if activated on top of the events element.

Syntax

JavaScript Syntax
Object.defineProperty(InteractiveService.prototype, 'preventContextMenu', 
	get: function(), 
	set: function(value) 
) 
TypeScript Syntax
preventContextMenu: boolean;

Property Value

true to prevent the browser context menu from appearing if activated on top of the events element; otherwise, it is false. Default value is false.

Remarks

If you use InteractiveModes to associate an interactive mode with the right mouse button, then the viewer will automatically set the value of PreventContextMenu of its service instance to true.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Controls Assembly
Click or drag to resize