Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions gui-js/apps/minsky-electron/src/app/managers/KeyBindingsManager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
MinskyProcessPayload,
ZOOM_OUT_FACTOR,
minsky, RenderNativeWindow,
} from '@minsky/shared';
import utf8 from 'utf8';
Expand Down Expand Up @@ -187,14 +186,6 @@ export class KeyBindingsManager {
await this.handlePlusKey(payload);
break;

case '-':
if (payload.location !== 3) {
executed = false;
} else {
await this.handleMinusKey(payload);
}
break;

case '*':
minsky.canvas.addOperation("multiply");
await CommandsManager.mouseUp(payload.mouseX, payload.mouseY);
Expand Down Expand Up @@ -287,12 +278,6 @@ export class KeyBindingsManager {
// return;
}

private static async handleMinusKey(payload: MinskyProcessPayload) {
// <Key-KP_Subtract>
await this.zoom(ZOOM_OUT_FACTOR);
return;
}

private static async zoom(factor: number) {
const cBounds = minsky.model.cBounds();
const x = 0.5 * (cBounds[2] + cBounds[0]);
Expand Down
Loading