This commit is contained in:
1 parent
bfb8275b2f
commit
9ce07c860b
5 files changed
+94
-10
No files matched your search
@@ -2990,6 +2990,28 @@ function setupEvents() {
|
||||
el.canvasViewport.classList.add("dragging");
|
||||
evt.preventDefault();
|
||||
}
|
||||
|
||||
if (evt.altKey && evt.key === "Enter") {
|
||||
evt.preventDefault();
|
||||
if (state.selectedPin) {
|
||||
el.applyPinPropsBtn.click();
|
||||
return;
|
||||
}
|
||||
if (state.selectedNet) {
|
||||
el.updateNetBtn.click();
|
||||
return;
|
||||
}
|
||||
if (state.selectedRefs.length === 1 && state.selectedRef) {
|
||||
el.updatePlacementBtn.click();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (evt.altKey && evt.key.toLowerCase() === "c" && state.selectedPin) {
|
||||
evt.preventDefault();
|
||||
el.connectPinBtn.click();
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener("keyup", (evt) => {
|
||||
|
||||
+10
-10
@@ -13,12 +13,12 @@
|
||||
<p>AI-Native Schematic Workspace</p>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<button id="newProjectBtn">New</button>
|
||||
<button id="loadSampleBtn">Load Sample</button>
|
||||
<button id="importBtn">Import JSON</button>
|
||||
<button id="exportBtn">Export JSON</button>
|
||||
<button id="autoLayoutBtn">Auto Layout</button>
|
||||
<button id="autoTidyBtn">Auto Tidy</button>
|
||||
<button id="newProjectBtn" aria-label="Create new project">New</button>
|
||||
<button id="loadSampleBtn" aria-label="Load sample project">Load Sample</button>
|
||||
<button id="importBtn" aria-label="Import Schemeta JSON file">Import JSON</button>
|
||||
<button id="exportBtn" aria-label="Export Schemeta JSON file">Export JSON</button>
|
||||
<button id="autoLayoutBtn" aria-label="Run automatic layout">Auto Layout</button>
|
||||
<button id="autoTidyBtn" aria-label="Run automatic tidy layout">Auto Tidy</button>
|
||||
<button id="undoBtn" title="Undo (Ctrl/Cmd+Z)">Undo</button>
|
||||
<button id="redoBtn" title="Redo (Ctrl/Cmd+Shift+Z)">Redo</button>
|
||||
<label class="inlineSelect">
|
||||
@@ -54,10 +54,10 @@
|
||||
|
||||
<section class="pane center">
|
||||
<div class="canvasTools">
|
||||
<button id="zoomOutBtn">-</button>
|
||||
<button id="zoomResetBtn">100%</button>
|
||||
<button id="zoomInBtn">+</button>
|
||||
<button id="fitViewBtn">Fit</button>
|
||||
<button id="zoomOutBtn" aria-label="Zoom out">-</button>
|
||||
<button id="zoomResetBtn" aria-label="Reset zoom">100%</button>
|
||||
<button id="zoomInBtn" aria-label="Zoom in">+</button>
|
||||
<button id="fitViewBtn" aria-label="Fit schematic to viewport">Fit</button>
|
||||
<label class="inlineCheck"><input id="showLabelsInput" type="checkbox" checked /> Labels</label>
|
||||
<span id="compileStatus">Idle</span>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user