Added support for paste to the VT100, but browser idiosyncrasies (eg, Chrome) are proving irksome; for now, you'll have more luck with Firefox, or sticking to machines that use a textarea for their I/O instead the VT100 if you need to do a lot of pasting

This commit is contained in:
Jeff Parsons 2016-11-25 18:28:57 -08:00 • committed by Jeff Parsons
commit 66f82736c9
6 changed files with 417 additions and 364 deletions

View file

@ -215,7 +215,7 @@ function Video8080(parmsVideo, canvas, context, textarea, container)
if ('on' + sEvent in document) {
var onFullScreenChange = function() {
var fFullScreen = (document['fullscreenElement'] || document['msFullscreenElement'] || document['mozFullScreenElement'] || document['webkitFullscreenElement']);
video.notifyFullScreen(fFullScreen? true : false);
video.notifyFullScreen(!!fFullScreen);
};
document.addEventListener(sEvent, onFullScreenChange, false);
break;