mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 11:03:48 +01:00
keyboard shortcuts
This commit is contained in:
parent
d98b90bb2e
commit
7360cdc85a
@ -152,6 +152,29 @@ class App extends React.Component {
|
||||
}
|
||||
break;
|
||||
|
||||
case 's': {
|
||||
if (!commandKey) d2ChangeTool(d2Tools.TRANSFORM);
|
||||
break;
|
||||
}
|
||||
|
||||
case 'e': {
|
||||
if (!commandKey) {
|
||||
event.preventDefault();
|
||||
d2ChangeTool(d2Tools.ERASER);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case 'c': {
|
||||
if (!commandKey) d2ChangeTool(d2Tools.CIRCLE);
|
||||
break;
|
||||
}
|
||||
|
||||
case 'l': {
|
||||
if (!commandKey) d2ChangeTool(d2Tools.POLYGON);
|
||||
break;
|
||||
}
|
||||
|
||||
case 't': {
|
||||
if (!commandKey) d2ChangeTool(d2Tools.TEXT);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user