mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-01 11:24:57 +01:00
added shortcut key, fixed regression impacting other tools
This commit is contained in:
@@ -4620,7 +4620,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
|
||||
lastPointerUp = onPointerUp;
|
||||
|
||||
if (this.state.activeTool.type === "laser") {
|
||||
if (!this.state.viewModeEnabled || this.state.activeTool.type === "laser") {
|
||||
window.addEventListener(EVENT.POINTER_MOVE, onPointerMove);
|
||||
window.addEventListener(EVENT.POINTER_UP, onPointerUp);
|
||||
window.addEventListener(EVENT.KEYDOWN, onKeyDown);
|
||||
|
||||
Reference in New Issue
Block a user