Fix wrong cursor for selection keyboard shortcut (#645)
Pressing 1 would change the cursor to a + instead of normal cursor
This commit is contained in:
parent
c7eebd42c1
commit
29f1465b81
@ -378,8 +378,7 @@ export class App extends React.Component<any, AppState> {
|
|||||||
this.state.draggingElement === null
|
this.state.draggingElement === null
|
||||||
) {
|
) {
|
||||||
if (!isHoldingSpace) {
|
if (!isHoldingSpace) {
|
||||||
document.documentElement.style.cursor =
|
setCursorForShape(shape);
|
||||||
shape === "text" ? CURSOR_TYPE.TEXT : CURSOR_TYPE.CROSSHAIR;
|
|
||||||
}
|
}
|
||||||
elements = clearSelection(elements);
|
elements = clearSelection(elements);
|
||||||
this.setState({ elementType: shape });
|
this.setState({ elementType: shape });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user