Log In  


[Adding this myself as I'm now using this forum as a bug-tracker :)]

When trying to comment on a cartridge that is still running in the same page, cursor key and space bar presses are ignored.

Work-around until fixed: close the cart before commenting.

For testing:

Cart #9970 | 2015-04-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
36

1


This may work:

function onKeyDown_blocker(event) {
					event = event || window.event;
					var o = document.activeElement;
					if (!o || o == document.body || o.tagName == "CANVAS")
					if (playarea_state == 1) // only while cartridge is active
					if ([32, 37, 38, 39, 40].indexOf(event.keyCode) > -1)
					{
						if (event.preventDefault) event.preventDefault();
					}
				}

Thanks YellowAfterlife, that works perfectly.



[Please log in to post a comment]