MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / onDocumentKeyDown

Function onDocumentKeyDown

plugins/Sidebar/media_globe/all.js:425–436  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

423 }
424
425 function onDocumentKeyDown(event) {
426 switch (event.keyCode) {
427 case 38:
428 zoom(100);
429 event.preventDefault();
430 break;
431 case 40:
432 zoom(-100);
433 event.preventDefault();
434 break;
435 }
436 }
437
438 function onWindowResize( event ) {
439 camera.aspect = container.offsetWidth / container.offsetHeight;

Callers

nothing calls this directly

Calls 1

zoomFunction · 0.70

Tested by

no test coverage detected