We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1deafc4 commit 177c02fCopy full SHA for 177c02f
editor/src/editor/nodes/camera.ts
@@ -1,5 +1,7 @@
1
import { Node, FreeCamera, Scene, Vector3 } from "babylonjs";
2
3
+import { isDomTextInputFocused } from "../../tools/dom";
4
+
5
export class EditorCamera extends FreeCamera {
6
private _savedSpeed: number | null = null;
7
@@ -21,7 +23,7 @@ export class EditorCamera extends FreeCamera {
21
23
window.addEventListener(
22
24
"keydown",
25
(this._keyboardDownListener = (ev) => {
- if (ev.key !== "Shift") {
26
+ if (ev.key !== "Shift" || isDomTextInputFocused()) {
27
return;
28
}
29
0 commit comments