Reference.Services Sample

This sample shows how to be a Visual Studio service provider and how to consume Visual Studio services.

 
 
 
 
 
(0)
4,963 times
Add to favorites
2/22/2011
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

VB.NET
C#
C#, C++
function keyHandler()
{
	var e = window.event;
	var tag = e.srcElement.tagName;
	var override = !(tag == "A" || tag == "INPUT" || tag == "SELECT" || tag == "FORM" || tag == "SUBMIT");
	
	if(override && e.keyCode == 13) //13 is <enter> key
	{
		e.srcElement.click();
	}
}

document.onkeypress = keyHandler;