From 6c4a80e08a339ae72dda32be054806eeb97f2b70 Mon Sep 17 00:00:00 2001 From: Zishan Rahman Date: Wed, 10 Sep 2025 19:06:54 +0100 Subject: [PATCH] Add basic support for focusing camera on selected mesh using F key (default key for similar purpose in Unity and some other game engines) --- ui/gizmos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/gizmos.js b/ui/gizmos.js index d1fb4a7..3a7f528 100644 --- a/ui/gizmos.js +++ b/ui/gizmos.js @@ -24,7 +24,7 @@ document.addEventListener("DOMContentLoaded", function () { window.addEventListener("keydown", (event) => { // Check if both Ctrl and the comma key (,) are pressed - if (event.ctrlKey && event.code === "Comma") { + if ((event.ctrlKey && event.code === "Comma") || (event.code === "KeyF")) { focusCameraOnMesh(); } });