Community
Participate
Working Groups
addModifierToProperties : function( properties, event ) {
var isMac = rwt.client.Client.getPlatform() === "mac";
var commandKey = isMac && ( event ? event.metaKey : rwt.remote.EventUtil._metaKey );
var commandKey = isMac && ( event ? event.metaKey : rwt.remote.EventUtil._metaKey ) === true;
properties.shiftKey = event ? event.shiftKey : rwt.remote.EventUtil._shiftKey;
properties.ctrlKey = ( event ? event.ctrlKey : rwt.remote.EventUtil._ctrlKey ) || commandKey;
properties.altKey = event ? event.altKey : rwt.remote.EventUtil._altKey;
] );
var context = gc._context;
assertTrue( context.isPointInPath( 101, 115 ) );
assertTrue( context.isPointInPath( 101, 115.1 ) );
assertTrue( context.isPointInPath( 159, 115 ) );
assertTrue( context.isPointInPath( 104, 122 ) );
assertTrue( context.isPointInPath( 155, 122 ) );