sort keypress cases
This commit is contained in:
parent
9c85187923
commit
96095a3870
1 changed files with 26 additions and 26 deletions
|
|
@ -227,51 +227,51 @@ function space_init(data) {
|
||||||
return api.mode.face();
|
return api.mode.face();
|
||||||
case 'Digit6':
|
case 'Digit6':
|
||||||
return api.mode.edge();
|
return api.mode.edge();
|
||||||
case 'KeyQ':
|
case 'KeyB':
|
||||||
return api.settings();
|
return selection.boundsBox({toggle:true});
|
||||||
case 'KeyI':
|
|
||||||
return api.file.import();
|
|
||||||
case 'KeyX':
|
|
||||||
return api.file.export();
|
|
||||||
case 'KeyD':
|
|
||||||
return shiftKey && api.tool.duplicate();
|
|
||||||
case 'KeyC':
|
case 'KeyC':
|
||||||
return selection.centerXY().focus();
|
return selection.centerXY().focus();
|
||||||
case 'KeyF':
|
case 'KeyD':
|
||||||
return shiftKey ? selection.focus() : selection.floor().focus();
|
return shiftKey && api.tool.duplicate();
|
||||||
case 'KeyM':
|
|
||||||
return shiftKey ? api.tool.merge() : api.tool.mirror();
|
|
||||||
case 'KeyU':
|
|
||||||
return shiftKey && api.tool.union();
|
|
||||||
case 'KeyE':
|
case 'KeyE':
|
||||||
if (api.mode.is([ api.modes.sketch ])) {
|
if (api.mode.is([ api.modes.sketch ])) {
|
||||||
estop(evt);
|
estop(evt);
|
||||||
return api.sketch.extrude();
|
return api.sketch.extrude();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case 'KeyV':
|
case 'KeyF':
|
||||||
return shiftKey ? selection.show() : selection.focus();
|
return shiftKey ? selection.focus() : selection.floor().focus();
|
||||||
case 'KeyR':
|
|
||||||
return estop(evt, api.tool.rename());
|
|
||||||
case 'KeyN':
|
|
||||||
return shiftKey ? api.tool.invert() : api.normals();
|
|
||||||
case 'KeyW':
|
|
||||||
return api.wireframe();
|
|
||||||
case 'KeyG':
|
case 'KeyG':
|
||||||
return shiftKey ?
|
return shiftKey ?
|
||||||
(api.mode.is([ api.modes.sketch ]) ? api.sketch.arrange.group() : api.tool.regroup()) :
|
(api.mode.is([ api.modes.sketch ]) ? api.sketch.arrange.group() : api.tool.regroup()) :
|
||||||
api.grid();
|
api.grid();
|
||||||
|
case 'KeyH':
|
||||||
|
return shiftKey ? selection.hide() : space.view.home();
|
||||||
|
case 'KeyI':
|
||||||
|
return api.file.import();
|
||||||
case 'KeyL':
|
case 'KeyL':
|
||||||
return api.log.toggle({ spinner: false });
|
return api.log.toggle({ spinner: false });
|
||||||
|
case 'KeyM':
|
||||||
|
return shiftKey ? api.tool.merge() : api.tool.mirror();
|
||||||
|
case 'KeyN':
|
||||||
|
return shiftKey ? api.tool.invert() : api.normals();
|
||||||
|
case 'KeyQ':
|
||||||
|
return api.settings();
|
||||||
|
case 'KeyR':
|
||||||
|
return estop(evt, api.tool.rename());
|
||||||
case 'KeyS':
|
case 'KeyS':
|
||||||
if (!api.mode.is([ api.modes.object ])) return;
|
if (!api.mode.is([ api.modes.object ])) return;
|
||||||
return shiftKey ? selection.visible({toggle:true}) : meshSplit.start();
|
return shiftKey ? selection.visible({toggle:true}) : meshSplit.start();
|
||||||
case 'KeyB':
|
|
||||||
return selection.boundsBox({toggle:true});
|
|
||||||
case 'KeyH':
|
|
||||||
return shiftKey ? selection.hide() : space.view.home();
|
|
||||||
case 'KeyT':
|
case 'KeyT':
|
||||||
return shiftKey ? api.tool.triangulate() : space.view.top();
|
return shiftKey ? api.tool.triangulate() : space.view.top();
|
||||||
|
case 'KeyU':
|
||||||
|
return shiftKey && api.tool.union();
|
||||||
|
case 'KeyV':
|
||||||
|
return shiftKey ? selection.show() : selection.focus();
|
||||||
|
case 'KeyW':
|
||||||
|
return api.wireframe();
|
||||||
|
case 'KeyX':
|
||||||
|
return api.file.export();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'keydown', evt => {
|
'keydown', evt => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue