function isPresto() {
	  var opera = window.opera;
	  return typeof opera === 'object' && typeof opera.version === 'function' && parseInt(opera.version(), 10) <= 12;
	}
Opera <= 12 includes TextEvent in window, but does not fire
text input events. Rely on keypress instead.