Skip to content

Commit ad39233

Browse files
committed
fix: 修改鼠标模式更改快捷键,减少误触概率
1 parent 0677a74 commit ad39233

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/core/service/controlService/shortcutKeysEngine/shortcutKeysRegister.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,20 +447,20 @@ export class KeyBindsRegistrar {
447447
toast("todo");
448448
});
449449

450-
await this.project.keyBinds.create("checkoutLeftMouseToSelectAndMove", "v", async () => {
450+
await this.project.keyBinds.create("checkoutLeftMouseToSelectAndMove", "v v v", async () => {
451451
if (!this.project.keyboardOnlyEngine.isOpenning()) return;
452452
Settings.mouseLeftMode = "selectAndMove";
453453
toast("当前鼠标左键已经切换为框选/移动模式");
454454
});
455-
await this.project.keyBinds.create("checkoutLeftMouseToDrawing", "p", async () => {
455+
await this.project.keyBinds.create("checkoutLeftMouseToDrawing", "b b b", async () => {
456456
if (!this.project.keyboardOnlyEngine.isOpenning()) return;
457457
Settings.mouseLeftMode = "draw";
458458
toast("当前鼠标左键已经切换为画笔模式");
459459
});
460460

461461
// 鼠标左键切换为连接模式
462462
// let lastMouseMode = "selectAndMove";
463-
await this.project.keyBinds.create("checkoutLeftMouseToConnectAndCutting", "c", async () => {
463+
await this.project.keyBinds.create("checkoutLeftMouseToConnectAndCutting", "c c c", async () => {
464464
if (!this.project.keyboardOnlyEngine.isOpenning()) return;
465465
Settings.mouseLeftMode = "connectAndCut";
466466
toast("当前鼠标左键已经切换为连接/切割模式");

0 commit comments

Comments
 (0)